commit bf9bce08a8ea7626f3e2fe7817353a3c894f911f Author: Nathan Singer Date: Mon Apr 21 21:21:30 2025 -0400 initial diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..afc642e --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +CC=g++ +CFLAGS= -c -g -Wall + +LDLIBS = -lgtk + +TARGET := untap + +BUILD_DIR := ./build +SRC_DIRS := ./src + +SRCS := $(shell find $(SRC_DIRS) -name '*.cpp') + +OBJS := $(SRCS:%=$(BUILD_DIR)/%.o) + +$(BUILD_DIR)/$(TARGET): $(OBJS) + $(CC) $(OBJS) -o $@ $(LDLIBS) + +$(BUILD_DIR)/%.c.o: %.cpp + mkdir -p $(dir $@) + $(CC) $(CFLAGS) -c $< -o $@ + +.PHONY: clean +clean: + rm -rf $(BUILD_DIR) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..e69de29