hlswmaster/Makefile

30 lines
592 B
Makefile
Raw Normal View History

2006-11-24 21:53:25 +01:00
VERSION := v2.00
2007-04-17 14:23:19 +02:00
CFLAGS := -O2 -pipe -Wall -Iinclude -DVERSION='"$(VERSION)"'
2006-11-24 21:53:25 +01:00
LDFLAGS := -ldl -rdynamic
2007-04-17 14:23:19 +02:00
OBJS := configfile.o event.o gamelist.o logging.o netpkt.o plugin.o \
plugin_helper.o scanner.o server.o
2006-11-24 21:53:25 +01:00
2007-04-17 14:23:19 +02:00
all: hlswmaster masterquery
make -C plugins all
2006-11-24 21:53:25 +01:00
2007-04-17 14:23:19 +02:00
hlswmaster: $(OBJS) hlswmaster.o
2006-11-24 21:53:25 +01:00
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
masterquery: masterquery.o
2007-04-17 14:23:19 +02:00
$(CC) $(CFLAGS) $^ -o $@
2006-11-24 21:53:25 +01:00
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
%.d: %.c
$(CC) $(CFLAGS) -MM -c $< -o $@
clean:
2007-04-17 14:23:19 +02:00
rm -f hlswmaster masterquery *.d *.o *.log
make -C plugins clean
2006-11-24 21:53:25 +01:00
DEPS := $(wildcard *.c)
-include $(DEPS:.c=.d)