added Makefiles

This commit is contained in:
wt
2026-04-08 15:30:08 +07:00
parent 54a89de56c
commit 13c21194e9
11 changed files with 165 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
CXX = g++
CFLAGS = -Wall -g
SRCS = $(wildcard src/*/*.cpp src/*.cpp)
OBJS = $(SRCS:.cpp=.o)
TARGET = rmdupfromsortedarray2
CROSS_COMPILE =
all: $(TARGET)
$(TARGET): $(OBJS)
$(CROSS_COMPILE)$(CXX) $(LDFLAGS) $^ -o $@ $(LIBS)
%.o: %.cpp
$(CROSS_COMPILE)$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)