summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2023-04-30 11:15:18 -0400
committermattkae <mattkae@protonmail.com>2023-04-30 11:15:18 -0400
commit04206efb102990c2ce0fa26be30db803cdc816be (patch)
tree7423964d7afeb6d2d25eeb544a0d8396df546e06 /Makefile
parent4058f9b1704322f8185136c2558c2ab96a4d835c (diff)
Moving over to CMakeList for qcreator support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile45
1 files changed, 0 insertions, 45 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index e453aa6..0000000
--- a/Makefile
+++ /dev/null
@@ -1,45 +0,0 @@
-TARGET_EXEC ?= html_parser
-
-BUILD_DIR ?= ./build
-SRC_DIRS ?= ./src
-
-CC := g++ -g
-SRCS := $(shell find $(SRC_DIRS) -name *.cpp -or -name *.c -or -name *.s)
-OBJS := $(SRCS:%=$(BUILD_DIR)/%.o)
-DEPS := $(OBJS:.o=.d)
-
-INC_DIRS := $(shell find $(SRC_DIRS) -type d)
-INC_FLAGS := $(addprefix -I,$(INC_DIRS))
-
-CPPFLAGS ?= $(INC_FLAGS) -MMD -MP
-
-$(BUILD_DIR)/$(TARGET_EXEC): $(OBJS)
- $(CC) $(OBJS) -o $@ -lmatte
-
-# assembly
-$(BUILD_DIR)/%.s.o: %.s
- $(MKDIR_P) $(dir $@)
- $(AS) $(ASFLAGS) -c $< -o $@
-
-# c source
-$(BUILD_DIR)/%.c.o: %.c
- $(MKDIR_P) $(dir $@)
- $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
-
-# c++ source
-$(BUILD_DIR)/%.cpp.o: %.cpp
- $(MKDIR_P) $(dir $@)
- $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
-
-
-.PHONY: clean
-
-clean:
- $(RM) -r $(BUILD_DIR)
-
-all:
- $(BUILD_DIR)/$(TARGET_EXEC)
-
--include $(DEPS)
-
-MKDIR_P ?= mkdir -p