lets use opengl instead

This commit is contained in:
2025-04-21 22:16:28 -04:00
parent 59e838aabb
commit 48c90cd5bf
24 changed files with 13103 additions and 50 deletions

View File

@ -1,7 +1,8 @@
CC=g++
CFLAGS= -c -g -Wall $(shell pkg-config --cflags gtkmm-4.0)
LDLIBS = $(shell pkg-config --libs gtkmm-4.0)
CFLAGS= -c -g -Wall
LDLIBS = -lglfw
TARGET := untap
@ -9,16 +10,24 @@ BUILD_DIR := ./build
SRC_DIRS := ./src
SRCS := $(shell find $(SRC_DIRS) -name '*.cpp')
SRCS += $(shell find $(SRC_DIRS) -name '*.c')
OBJS := $(SRCS:%=$(BUILD_DIR)/%.o)
$(BUILD_DIR)/$(TARGET): $(OBJS)
$(CC) $(OBJS) -o $@ $(LDLIBS)
cp -r $(SRC_DIRS)/shaders $(BUILD_DIR)/
cp -r $(SRC_DIRS)/textures $(BUILD_DIR)/
$(BUILD_DIR)/%.cpp.o: %.cpp
mkdir -p $(dir $@)
$(CC) $(CFLAGS) -c $< -o $@
$(BUILD_DIR)/%.c.o: %.c
mkdir -p $(dir $@)
$(CC) $(CFLAGS) -c $< -o $@
.PHONY: clean
clean:
rm -rf $(BUILD_DIR)