Makefile 818 B

123456789101112131415161718192021222324252627282930
  1. CFLAGS= build/libraylib.a -Wall -lGL -lm -lpthread -ldl -lrt -lX11
  2. OBJECTS = $(patsubst src/%.c, build/%.o, $(wildcard src/*.c))
  3. build: ${OBJECTS}
  4. gcc ${OBJECTS} ${CFLAGS} -o chicken_go_splat.x86_64
  5. build/main.o: src/main.c
  6. gcc -c -Wall src/main.c -o build/main.o
  7. build/renderer.o: src/renderer.c
  8. gcc -c -Wall src/renderer.c -o build/renderer.o
  9. build/cars.o: src/cars.c
  10. gcc -c -Wall src/cars.c -o build/cars.o
  11. build/players.o: src/players.c
  12. gcc -c -Wall src/players.c -o build/players.o
  13. build/menu.o: src/menu.c
  14. gcc -c -Wall src/menu.c -o build/menu.o
  15. build/image_loading.o: src/image_loading.c src/images.h
  16. gcc -c -Wall src/image_loading.c -o build/image_loading.o
  17. build/sound_loading.o: src/sound_loading.c src/sounds.h
  18. gcc -c -Wall src/sound_loading.c -o build/sound_loading.o
  19. clean:
  20. rm build/*.o