added candy

This commit is contained in:
wt
2026-04-09 16:01:16 +07:00
parent c15b4b66e0
commit d2032ea77d
8 changed files with 60 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
CXX = g++
CFLAGS = -Wall -g -std=c++20
SRCS = $(wildcard src/*/*.cpp src/*.cpp)
OBJS = $(SRCS:.cpp=.o)
TARGET = candy
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)