diff options
| author | Carlos Maiolino <[email protected]> | 2026-01-02 14:59:29 +0100 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2026-01-02 14:59:29 +0100 |
| commit | 0ef17f4387bc95fad289a7d29c28703743072214 (patch) | |
| tree | 0f66e4199637ae0f6ae092efb0931df809cba89c /Makefile | |
| parent | b44a1bf90f4336833f8ade39d053b9d917ede848 (diff) | |
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -11,11 +11,14 @@ INCLUDES= -I$(RB_LIBS_DIR) OBJS= ./build/*.o all: $(BUILD_DIR)/rb.o - gcc -Wall $(INCLUDES) $(OBJS) $(ALLEGRO_LIBS) -o $(BIN_DIR)/rocksblaster + gcc -Wall $(INCLUDES) -lm $(OBJS) $(ALLEGRO_LIBS) -o $(BIN_DIR)/rocksblaster -$(BUILD_DIR)/rb.o: src/rb.c +$(BUILD_DIR)/rb.o: $(BUILD_DIR)/spaceship.o src/rb.c gcc -Wall $(INCLUDES) -c src/rb.c -o $(BUILD_DIR)/rb.o +$(BUILD_DIR)/spaceship.o: src/spaceship.c + gcc -Wall $(INCLUDES) -c src/spaceship.c -o $(BUILD_DIR)/spaceship.o + clean: rm -f $(BUILD_DIR)/*.o rm -f $(BIN_DIR)/rocksblaster |
