1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
CFLAGS=-O3 -march=native -flto -pipe LIBS=-lbluetooth -lSDL2 OBJ = main.o HEADERS = main.h bluetooth.h io.h %.o: %.c $(DEPS) $(HEADERS) gcc -c -o $@ $< $(CFLAGS) $(LIBS) wiimote: $(OBJ) gcc -o $@ $^ $(CFLAGS) $(LIBS) clean: rm wiimote rm main.o