This commit is contained in:
wt committed 2024-12-26 15:02:26 +07:00
1 parent 66ac52835b
commit 16dd47fbad
11 files changed
+14 -356

No files matched your search

+8
View File
@@ -15,6 +15,9 @@ ARCH = amd64
DEBPACKAGENAME = udpchat-$(DEBVERSION)-1_$(ARCH)
build:
@if [ ! -d ${DESTDIR} ]; then \
mkdir ${DESTDIR}; \
fi
@echo -e "$(GREEN)[ $(YELLOW)25% $(GREEN)] $(RESET)CC SERVER"
@$(CXX) -o $(DESTDIR)server $(SRC_SERVER) $(CXX_FLAGS)
@echo -e "$(GREEN)[ $(YELLOW)50% $(GREEN)] $(RESET)CC CLIENT"
@@ -25,6 +28,11 @@ build:
@strip $(DESTDIR)client >> /dev/null
@echo -e "$(GREEN)BUILD SUCCESS$(RESET)"
clean:
@if [ -d ${DESTDIR} ]; then \
rm -rv ${DESTDIR}; \
fi
runserver:
@$(DESTDIR)server 127.0.0.1 43243