summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2026-01-02 14:59:29 +0100
committerCarlos Maiolino <[email protected]>2026-01-02 14:59:29 +0100
commit0ef17f4387bc95fad289a7d29c28703743072214 (patch)
tree0f66e4199637ae0f6ae092efb0931df809cba89c /Makefile
parentb44a1bf90f4336833f8ade39d053b9d917ede848 (diff)
Redraw ship using transformationsHEADmaster
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ee2e518..49a6f81 100644
--- a/Makefile
+++ b/Makefile
@@ -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