u8g2-copy/tools/font/build/Makefile

30 lines
600 B
Makefile
Raw Normal View History

2015-11-07 16:27:18 +08:00
# works within ubuntu and min-gw (win7) environment
CFLAGS = -g -DBUILD2 -DU8G2_USE_LARGE_FONTS -DU8G2_16BIT -Wall -I../../../csrc/
2015-11-07 16:27:18 +08:00
#CFLAGS = -O4 -Wall
2015-11-15 01:44:51 +08:00
SRC1 = build.c
SRC2 = build.c u8x8_font_list.c u8g2_font_list.c u8g2_d_tga.c $(shell ls ../../../csrc/*.c)
2015-11-07 16:27:18 +08:00
2015-11-15 01:44:51 +08:00
OBJ1 = $(SRC1:.c=.o)
OBJ2 = $(SRC2:.c=.o)
ASM1 = $(SRC1:.c=.s)
ASM2 = $(SRC2:.c=.s)
2015-11-07 16:27:18 +08:00
.c.s:
$(CC) $(CFLAGS) -S -o $@ $<
2015-11-15 01:44:51 +08:00
build1: $(SRC1)
2015-11-29 07:34:07 +08:00
$(CC) -Wall -g $(LDFLAGS) $(SRC1) -o build1
# ./build1
2015-11-15 01:44:51 +08:00
2015-11-19 05:40:58 +08:00
build2: $(OBJ2)
2015-11-15 01:44:51 +08:00
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ2) -o build2
2015-11-07 16:27:18 +08:00
clean:
2015-11-15 01:44:51 +08:00
-rm $(OBJ1) $(ASM1) build1 $(OBJ2) $(ASM2) build2
2015-11-07 16:27:18 +08:00
test:
2015-11-15 01:44:51 +08:00
./build1