summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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