Makefile 234 B

1234567891011121314
  1. CFLAGS = $(shell pkg-config --cflags glfw3)
  2. LDFLAGS = $(shell pkg-config --static --libs glfw3) -lGL -lGLEW
  3. all: game
  4. run: game
  5. #./game
  6. vblank_mode=0 optirun ./game
  7. game: *.c *.h
  8. gcc -o game *.c $(LDFLAGS)
  9. clean:
  10. rm -f game