16 lines
300 B
Makefile
16 lines
300 B
Makefile
|
|
CFLAGS = -O -I../hal -I../../../csrc -DU8X8_USE_PINS -ffunction-sections -fdata-sections
|
|
LDFLAGS = -Wl,--gc-sections
|
|
|
|
SRC = $(wildcard *.c) $(wildcard ../hal/*.c) $(wildcard ../../../csrc/*.c)
|
|
|
|
OBJ = $(SRC:.c=.o)
|
|
|
|
|
|
main: $(OBJ)
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) -o main
|
|
|
|
clean:
|
|
-rm $(OBJ) main
|
|
|