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
578 B

CC=c++
IDIR =../include
CFLAGS=-I. -DICE_CPP11_MAPPING -I $(IDIR) -std=c++11
ODIR=obj
LDIR =../lib
LIBS=-lm -lIce++11
_DEPS = MW.h MWMap.h MWSession.h MWSessionI.h MWSessionManagerI.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))
_OBJ = MW.o MWServer.o MWMap.o MWSession.o MWSesionManagerI.o MWUtils.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
$(ODIR)/%.o: %.cpp $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
slice:
slice2cpp -I. -I../../ice/slice *.ice
mv *.h ../include
mwserver: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
.PHONY: clean
clean:
rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~