CFLAGS = -g -Wall -I../../../csrc/. `sdl2-config --cflags` SRC = $(shell ls ../../../csrc/*.c) $(shell ls ../common/*.c ) $(shell ls ../../bitmap/common/*.c ) $(shell ls *.c ) OBJ = $(SRC:.c=.o) u8g2_sdl: $(OBJ) $(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) `sdl2-config --libs` -lm -o u8g2_sdl clean: -rm $(OBJ) u8g2_sdl