Linux HLSW LAN Master
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.

30 lines
592 B

  1. VERSION := v2.00
  2. CFLAGS := -O2 -pipe -Wall -Iinclude -DVERSION='"$(VERSION)"'
  3. LDFLAGS := -ldl -rdynamic
  4. OBJS := configfile.o event.o gamelist.o logging.o netpkt.o plugin.o \
  5. plugin_helper.o scanner.o server.o
  6. all: hlswmaster masterquery
  7. make -C plugins all
  8. hlswmaster: $(OBJS) hlswmaster.o
  9. $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
  10. masterquery: masterquery.o
  11. $(CC) $(CFLAGS) $^ -o $@
  12. %.o: %.c
  13. $(CC) $(CFLAGS) -c $< -o $@
  14. %.d: %.c
  15. $(CC) $(CFLAGS) -MM -c $< -o $@
  16. clean:
  17. rm -f hlswmaster masterquery *.d *.o *.log
  18. make -C plugins clean
  19. DEPS := $(wildcard *.c)
  20. -include $(DEPS:.c=.d)