9f6733fcc8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4 a1c6a512-1295-4272-9138-f99709370657
40 lines
807 B
Makefile
40 lines
807 B
Makefile
##############################################################################
|
|
# Rockbox UI simulator
|
|
#############################################################################
|
|
|
|
TARGET = rockboxui
|
|
|
|
CC = gcc
|
|
RM = rm
|
|
|
|
CFLAGS = -g -O2
|
|
CPPFLAGS = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS
|
|
LDFLAGS = -lX11 -lm -lXt -lXmu -lsocket -lnsl
|
|
|
|
DEPEND = .depends
|
|
|
|
OBJS= alpha.o hsv.o screenhack.o yarandom.o uibasic.o resources.o visual.o\
|
|
usleep.o
|
|
|
|
SRCS = $(OBJS:%.o=%.c)
|
|
HDRS = $(OBJS:%.o=%.h)
|
|
|
|
all: $(DEPEND) $(TARGET)
|
|
|
|
clean:
|
|
$(RM) -f $(OBJS) *~ core $(TARGET) $(CLIENTS) $(DEPEND)
|
|
|
|
distclean: clean
|
|
$(RM) config.cache
|
|
|
|
.c.o:
|
|
$(CC) $(CPPFLAGS) $(CCFLAGS) -c $<
|
|
|
|
$(DEPEND):
|
|
$(CC) -MM $(CFLAGS) $(SRCS) > $(DEPEND)
|
|
|
|
$(TARGET): $(OBJS)
|
|
$(CC) -o $(TARGET) $(LDFLAGS) $(OBJS)
|
|
|
|
# Dependencies
|
|
include $(DEPEND)
|