diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 33 | ||||
-rw-r--r-- | Makefile.inc | 30 |
2 files changed, 0 insertions, 63 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index ee5c1138..00000000 --- a/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -TARGET:=usdx -include Makefile.inc - -headers+=$(wildcard src/*.hpp) -sources+=$(wildcard src/*.cpp) - -############################################################################## - -.PHONY: all clean run - -all: $(TARGET) - -clean: - -$(RM) -r $(TARGET) $(objects) $(deps) - -run: $(TARGET) - ./$(TARGET) - -ifneq ($(MAKECMDGOALS),clean) --include $(deps) -endif - -############################################################################## -# normal build - -$(TARGET): $(objects) $(deps) - $(CXX) $(LDFLAGS) -o $(TARGET) $(objects) - -%.o: %.cpp - $(CXX) $(CXXFLAGS) -MMD -c $< -o $@ - -%.d: %.cpp - $(CXX) $(CXXFLAGS) -MM -c $< -MF $@ diff --git a/Makefile.inc b/Makefile.inc deleted file mode 100644 index 6d4fb05a..00000000 --- a/Makefile.inc +++ /dev/null @@ -1,30 +0,0 @@ -# -*- mode: makefile -*- -TOP:=$(dir $(lastword $(MAKEFILE_LIST))) - -headers+=$(wildcard $(TOP)src/*/*.hpp) $(wildcard $(TOP)src/*/*/*.hpp) -sources+=$(wildcard $(TOP)src/*/*.cpp) $(wildcard $(TOP)src/*/*/*.cpp) - -deps=$(sources:.cpp=.d) -objects=$(sources:.cpp=.o) - -# APPS -PKG_CONFIG:=pkg-config -LOG4CPP_CONFIG:=log4cpp-config - -# CFLAGS -PEDENTIC:=-Wall -Werror -DEBUG:=-g -INC_PATH:=-I$(TOP)src/ -FTGL_CFLAGS:=$(shell $(PKG_CONFIG) ftgl --cflags) - -# LDFLAGS -SQLITE_LDFLAGS:=-lsqlite3 -LOG4CPP_LDFLAGS:=$(shell $(LOG4CPP_CONFIG) --libs) -BOOST_LDFLAGS:=-lboost_program_options-mt -lboost_filesystem-mt -lboost_thread-mt -lboost_system-mt -SDL_LDFLAGS:=-lSDL -lSDL_image -lSDL_gfx -GL_LDFLAGS:=-lGL -FTGL_LDFLAGS:=$(shell $(PKG_CONFIG) ftgl --libs) - - -CXXFLAGS:=$(PEDENTIC) $(INC_PATH) $(DEBUG) $(FTGL_CFLAGS) -LDFLAGS:=$(SQLITE_LDFLAGS) $(LOG4CPP_LDFLAGS) $(BOOST_LDFLAGS) $(SDL_LDFLAGS) $(GL_LDFLAGS) $(FTGL_LDFLAGS) |