Magic World game server
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.

29 lines
588 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. CC=c++
  2. IDIR =../include
  3. CFLAGS=-I. -DICE_CPP11_MAPPING -I $(IDIR) -std=c++11 -pthread
  4. ODIR=obj
  5. LDIR =../lib
  6. LIBS=-lm -lIce++11
  7. _DEPS = MW.h MWMap.h MWSession.h MWSessionI.h MWSessionManagerI.h
  8. DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
  9. _OBJ = MW.o MWServer.o MWMap.o MWSession.o MWSessionManagerI.o MWUtils.o
  10. OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
  11. $(ODIR)/%.o: %.cpp $(DEPS)
  12. $(CC) -c -o $@ $< $(CFLAGS)
  13. slice:
  14. slice2cpp -I. -I../../ice/slice *.ice
  15. mv *.h ../include
  16. mwserver: $(OBJ)
  17. $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
  18. .PHONY: clean
  19. clean:
  20. rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~