hlswmaster-ng/Makefile

43 lines
1.2 KiB
Makefile
Raw Normal View History

2006-04-29 21:48:48 +02:00
VERSION := v1.01
2006-04-15 20:09:55 +02:00
CFLAGS := -O2 -pipe -Wall -DVERSION='"$(VERSION)"'
CXXFLAGS := -O2 -pipe -Wall -Wunused -Wno-deprecated -DVERSION='"$(VERSION)"'
2006-02-02 16:55:44 +01:00
LIBS := -lpthread
2006-03-07 20:30:11 +01:00
HLSWMASTER_SRC := config.o gameentry.o gamelist.o gameparser.o gamescanner.o \
2006-04-15 19:55:07 +02:00
hlswmaster.o hlswserver.o logging.o modhelper.o modulelist.o \
multisock.o netpkt.o socket.o timerservice.o thread.o \
2006-03-07 20:30:11 +01:00
mod_d3engine.o mod_gamespy1.o mod_gamespy2.o mod_halflife.o \
2006-04-16 20:06:43 +02:00
mod_q3engine.o mod_quake2.o mod_ut.o
2006-02-02 16:55:44 +01:00
2006-03-07 20:30:11 +01:00
all: hlswmaster masterquery
2006-02-02 16:55:44 +01:00
2006-03-07 20:30:11 +01:00
hlswmaster: $(HLSWMASTER_SRC) hlswmaster.o
2006-04-15 19:55:07 +02:00
$(CXX) $(CXXFLAGS) $^ $(LIBS) -o $@
2006-02-02 16:55:44 +01:00
2006-03-07 20:30:11 +01:00
masterquery: masterquery.o
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
2006-02-02 16:55:44 +01:00
%.o: %.cpp
2006-04-15 19:55:07 +02:00
$(CXX) $(CXXFLAGS) -c $< -o $@
2006-02-02 16:55:44 +01:00
%.d: %.cpp
2006-04-15 19:55:07 +02:00
$(CXX) $(CXXFLAGS) -MM -c $< -o $@
2006-02-02 16:55:44 +01:00
2006-04-15 19:55:07 +02:00
dist: clean
ln -s . hlswmaster-ng
tar -czhf hlswmaster-ng-$(VERSION).tar.gz hlswmaster-ng/ \
2006-04-15 19:55:07 +02:00
--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
2006-04-15 19:55:07 +02:00
rm hlswmaster-ng
2006-03-05 02:28:19 +01:00
2006-02-02 16:55:44 +01:00
clean:
2006-04-15 19:55:07 +02:00
rm -f hlswmaster masterquery *.d *.o *.log \
hlswmaster-ng hlswmaster-ng-$(VERSION).tar.gz
2006-02-02 16:55:44 +01:00
2006-03-07 20:30:11 +01:00
##DEPS := $(wildcard *.cpp)
##-include $(DEPS:.cpp=.d)