crashtest-r0ket/firmware/lcd/Makefile

46 lines
1.1 KiB
Makefile
Raw Normal View History

##########################################################################
# User configuration and firmware specific object files
##########################################################################
OBJS =
2011-05-13 15:20:08 +02:00
OBJS += display.o
OBJS += render.o
OBJS += decoder.o
OBJS += backlight.o
2011-07-13 01:13:19 +02:00
OBJS += print.o
FONTS = $(basename $(wildcard fonts/*.c))
LIBNAME=lcd
##########################################################################
# GNU GCC compiler flags
##########################################################################
ROOT_PATH?= ..
INCLUDE_PATHS = -I$(ROOT_PATH) -I../core -I.
include $(ROOT_PATH)/Makefile.inc
FOBJS= $(foreach ft,$(FONTS),$(ft).o)
OBJS+= $(FOBJS)
##########################################################################
# Actual work
##########################################################################
include $(ROOT_PATH)/Makefile.util
all: allfonts.h
$(FOBJS): $(foreach ft,$(FONTS),$(ft).h) fonts.h
clean::
rm -f fonts/*.o allfonts.h
2011-07-17 01:39:55 +02:00
touch allfonts.h
.PHONY: allfonts.h
allfonts.h:
(echo "#include <lcd/fonts.h>";for a in $(FONTS) ; do echo "#include <lcd/$$a.h>"; done) > $@