a667fae21a
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.
39 lines
641 B
Makefile
39 lines
641 B
Makefile
#config
|
|
CXXFLAGS+=-std=c++11 -DDEBUG
|
|
LIB=-lmingw32 -lSDLmain -lSDL -lwsock32 -liphlpapi
|
|
|
|
#objects
|
|
OBJDIR=obj
|
|
OBJ=$(addprefix $(OBJDIR)/,base_scene.o scene_manager.o main.o surface_manager.o image.o sprite_sheet.o player.o player_manager.o config_utility.o)
|
|
|
|
#output
|
|
OUTDIR=out
|
|
OUT=$(addprefix $(OUTDIR)/,a)
|
|
|
|
#source
|
|
SRC=test_systems.cpp in_game.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:
|