254b97aa80
ManagerInterface was already designed for those two anyway. The only thing left to do is to rewrite the room API, and the whole thing should work fine again. I still think map data should be saved and loaded by lua code, so the rooms will still implement lua hooks. There may be other things that can be loaded from SQL, but I don't know what.
38 lines
532 B
Makefile
38 lines
532 B
Makefile
#config
|
|
INCLUDES+=. ../server_utilities ../../common/utilities
|
|
LIBS+=
|
|
CXXFLAGS+=-std=c++11 $(addprefix -I,$(INCLUDES))
|
|
|
|
#source
|
|
CXXSRC=$(wildcard *.cpp)
|
|
|
|
#objects
|
|
OBJDIR=obj
|
|
OBJ+=$(addprefix $(OBJDIR)/,$(CXXSRC:.cpp=.o))
|
|
|
|
#output
|
|
OUTDIR=..
|
|
OUT=$(addprefix $(OUTDIR)/,server.a)
|
|
|
|
#targets
|
|
all: $(OBJ) $(OUT)
|
|
ar -crs $(OUT) $(OBJ)
|
|
|
|
$(OBJ): | $(OBJDIR)
|
|
|
|
$(OUT): | $(OUTDIR)
|
|
|
|
$(OBJDIR):
|
|
mkdir $(OBJDIR)
|
|
|
|
$(OUTDIR):
|
|
mkdir $(OUTDIR)
|
|
|
|
$(OBJDIR)/%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
$(RM) *.o *.a *.exe
|
|
|
|
rebuild: clean all
|