hlswmaster-ng (now in c++)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

VERSION := v1.01
CFLAGS := -O2 -pipe -Wall -DVERSION='"$(VERSION)"'
CXXFLAGS := -O2 -pipe -Wall -Wunused -Wno-deprecated -DVERSION='"$(VERSION)"'
LIBS := -lpthread
HLSWMASTER_SRC := config.o gameentry.o gamelist.o gameparser.o gamescanner.o \
hlswmaster.o hlswserver.o logging.o modhelper.o modulelist.o \
multisock.o netpkt.o socket.o timerservice.o thread.o \
mod_d3engine.o mod_gamespy1.o mod_gamespy2.o mod_halflife.o \
mod_q3engine.o mod_quake2.o mod_ut.o
all: hlswmaster masterquery
hlswmaster: $(HLSWMASTER_SRC) hlswmaster.o
$(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@
masterquery: masterquery.o
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $< -o $@
%.d: %.cpp
$(CXX) $(CXXFLAGS) -MM -c $< -o $@
dist: clean
ln -s . hlswmaster-ng
tar -czhf hlswmaster-ng-$(VERSION).tar.gz hlswmaster-ng/ \
--exclude hlswmaster-ng/.git \
--exclude hlswmaster-ng/.gitignore \
--exclude hlswmaster-ng/doc \
--exclude hlswmaster-ng/hlswmaster-ng-$(VERSION).tar.gz \
--exclude hlswmaster-ng/hlswmaster-ng
rm hlswmaster-ng
rm -f hlswmaster masterquery *.d *.o *.log \
hlswmaster-ng hlswmaster-ng-$(VERSION).tar.gz
##DEPS := $(wildcard *.cpp)
##-include $(DEPS:.cpp=.d)