cleaned up to work with some code from the firmware directory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@83 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bf538ccd21
commit
fa2669667b
1 changed files with 19 additions and 10 deletions
|
@ -19,37 +19,46 @@
|
||||||
|
|
||||||
TARGET = rockboxui
|
TARGET = rockboxui
|
||||||
|
|
||||||
|
FIRMWAREDIR=../firmware
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
RM = rm
|
RM = rm
|
||||||
|
|
||||||
CFLAGS = -g
|
CFLAGS = -g
|
||||||
CPPFLAGS = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS
|
CPPFLAGS = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR -DHAVE_LCD_BITMAP -I$(FIRMWAREDIR)
|
||||||
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
|
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
|
||||||
INCLUDES =
|
INCLUDES =
|
||||||
LIBDIRS =
|
LIBDIRS =
|
||||||
DEPEND = .depends
|
|
||||||
|
|
||||||
OBJS= screenhack.o uibasic.o resources.o visual.o lcd.o lcd-x11.o
|
OBJS= screenhack.o uibasic.o resources.o visual.o lcd.o lcd-x11.o chartables.o
|
||||||
|
|
||||||
SRCS = $(OBJS:%.o=%.c)
|
SRCS = $(OBJS:%.o=%.c)
|
||||||
HDRS = $(OBJS:%.o=%.h)
|
HDRS = $(OBJS:%.o=%.h)
|
||||||
|
|
||||||
all: $(DEPEND) $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -f $(OBJS) *~ core $(TARGET) $(CLIENTS) $(DEPEND)
|
$(RM) -f $(OBJS) *~ core $(TARGET) $(CLIENTS)
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(RM) config.cache
|
$(RM) config.cache
|
||||||
|
|
||||||
|
lcd.o: $(FIRMWAREDIR)/lcd.c
|
||||||
|
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
|
chartables.o: $(FIRMWAREDIR)/chartables.c
|
||||||
|
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $<
|
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $<
|
||||||
|
|
||||||
$(DEPEND):
|
|
||||||
$(CC) -MM $(CFLAGS) $(SRCS) > $(DEPEND)
|
|
||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
$(CC) -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS)
|
$(CC) -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS)
|
||||||
|
|
||||||
# Dependencies
|
|
||||||
include $(DEPEND)
|
lcd-x11.o: lcd-x11.c screenhack.h config.h resources.h visual.h lcd-x11.h
|
||||||
|
resources.o: resources.c utils.h resources.h
|
||||||
|
screenhack.o: screenhack.c xmu.h screenhack.h config.h resources.h \
|
||||||
|
visual.h version.h vroot.h
|
||||||
|
uibasic.o: uibasic.c screenhack.h config.h resources.h visual.h version.h
|
||||||
|
visual.o: visual.c utils.h resources.h visual.h
|
||||||
|
|
Loading…
Reference in a new issue