add arduino code
This commit is contained in:
parent
96f7f571d6
commit
ea758b02ef
1656 changed files with 112690 additions and 12 deletions
31
4.2inch_e-paper_code/RaspberryPi/bcm2835/Makefile
Normal file
31
4.2inch_e-paper_code/RaspberryPi/bcm2835/Makefile
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
DIR_FONTS = ./Fonts
|
||||
DIR_OBJ = ./obj
|
||||
DIR_BIN = ./bin
|
||||
|
||||
OBJ_C = $(wildcard ${DIR_FONTS}/*.c ${DIR_OBJ}/*.c)
|
||||
OBJ_O = $(patsubst %.c,${DIR_BIN}/%.o,$(notdir ${OBJ_C}))
|
||||
|
||||
TARGET = epd
|
||||
#BIN_TARGET = ${DIR_BIN}/${TARGET}
|
||||
|
||||
CC = gcc
|
||||
|
||||
MSG = -g -O0 -Wall
|
||||
DEBUG = -D USE_DEBUG
|
||||
# DEBUG =
|
||||
CFLAGS += $(MSG) $(DEBUG)
|
||||
|
||||
LIB = -lbcm2835 -lm
|
||||
|
||||
${TARGET}:${OBJ_O}
|
||||
$(CC) $(CFLAGS) $(OBJ_O) -o $@ $(LIB)
|
||||
|
||||
${DIR_BIN}/%.o : $(DIR_OBJ)/%.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@ $(LIB)
|
||||
|
||||
${DIR_BIN}/%.o:$(DIR_FONTS)/%.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean :
|
||||
rm $(DIR_BIN)/*.*
|
||||
rm $(TARGET)
|
||||
Loading…
Add table
Add a link
Reference in a new issue