This repository has been archived on 2026-04-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Tortuga/server/makefile
T
Kayne Ruse a667fae21a Updated this project to the new standard, see details.
After a significant modification to the Codebase library, I imported a lot
of the Codebase updates back to this porject. Some files that exist in
Codebase still carry the zlib license header; these files are still under
the zlib license.

Following a significant struggle with SDL_net, I've decided to ditch that
library and write my own version. It currently only supports TCP
networking, and only works on windows platforms,  but it is sufficient at
this time.
2013-05-10 17:04:46 +10:00

39 lines
527 B
Makefile

#config
CXXFLAGS+=-std=c++11 -DDEBUG
LIB=-lmingw32 -lSDLmain -lSDL -lwsock32 -liphlpapi
#objects
OBJDIR=obj
OBJ=$(addprefix $(OBJDIR)/,main.o config_utility.o)
#output
OUTDIR=out
OUT=$(addprefix $(OUTDIR)/,a)
#source
SRC=server.cpp
#targets
all: $(OBJ) $(OUT)
$(CXX) $(CXXFLAGS) -o $(OUT) $(SRC) $(OBJ) $(LIB)
$(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
unit: