Makefile 599 B

1234567891011121314151617181920
  1. # Makefile for Cubious - (C) Chris Dorman, 2021
  2. CC = gcc
  3. CFLAGS = -O2
  4. LDFLAGS = -lGLEW -lGLU -lGL -lm -lc -lSDL2 -lSDL2_mixer
  5. BIN = bin/cubious
  6. OBJECTS = src/engine_assets.o src/engine_camera.o src/engine_chunk.o src/engine_clock.o src/engine_console.o src/engine_cube.o src/engine_generation.o src/engine_main.o src/engine_physics.o src/engine_player.o src/engine_renderer.o src/engine_sdl.o src/engine_shader.o src/engine_text.o src/engine_ui.o src/engine_world.o
  7. all: main
  8. fresh: clean all
  9. main: $(OBJECTS)
  10. $(CC) $(OBJECTS) -o $(BIN) $(LDFLAGS) $(CFLAGS)
  11. clean:
  12. rm -f $(OBJECTS) $(BIN)