2f86511254
This is great progress, but I think I should turn the common directory into a subnmodule, since
I've been constantly tabbing back and forward between this folder, and the debug folder, making
and committing identical edits to both.
Scene list:
> disconnected_screen.*pp
> lobby_menu.*pp
> main_menu.*pp
> options_menu.*pp
> splash_screen.*pp
* world*.*pp
* unfinished
> building
33 lines
596 B
Makefile
33 lines
596 B
Makefile
#config
|
|
INCLUDES+=. .. ../client_utilities ../../common/graphics ../../common/map ../../common/network ../../common/network/packet_types ../../common/ui ../../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)/,client.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 $@ $<
|