u8g2-copy/sys/raspi_gpio/u8g2_hello_world/Makefile

16 lines
295 B
Makefile
Raw Normal View History

2021-07-05 19:15:37 +08:00
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)