diff options
| author | Carlos Maiolino <[email protected]> | 2025-10-28 20:56:23 +0100 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-10-28 20:56:23 +0100 |
| commit | 5e7ef9236c51593074da22f42d25b1d622939707 (patch) | |
| tree | b38977134ca390778b46ad10d880cf57a92e4bf4 /Makefile | |
Initial drop
Add basic Allegro initialization, draw the display and add sample object
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ee2e518 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +RB_LIBS_DIR= ./src/include/ +BUILD_DIR= ./build/ +BIN_DIR= ./bin + +ALLEGRO_LIBS= -lallegro_font \ + -lallegro_primitives \ + -lallegro + +INCLUDES= -I$(RB_LIBS_DIR) + +OBJS= ./build/*.o + +all: $(BUILD_DIR)/rb.o + gcc -Wall $(INCLUDES) $(OBJS) $(ALLEGRO_LIBS) -o $(BIN_DIR)/rocksblaster + +$(BUILD_DIR)/rb.o: src/rb.c + gcc -Wall $(INCLUDES) -c src/rb.c -o $(BUILD_DIR)/rb.o + +clean: + rm -f $(BUILD_DIR)/*.o + rm -f $(BIN_DIR)/rocksblaster |
