From 5e7ef9236c51593074da22f42d25b1d622939707 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Tue, 28 Oct 2025 20:56:23 +0100 Subject: Initial drop Add basic Allegro initialization, draw the display and add sample object Signed-off-by: Carlos Maiolino --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3