- Various makefile improvements (better mingw support, easier to add new sources)
- Include loki/StrongPtr.hpp, not Loki/StrongPtr.hpp (test/SmartPtr) git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@638 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
cdc57d88aa
commit
85a490c387
23 changed files with 340 additions and 280 deletions
|
@ -1,8 +1,14 @@
|
|||
BIN = main
|
||||
CXXFLAGS = -Wall -Wold-style-cast -Wundef -Wsign-compare -Wconversion -Wpointer-arith -pedantic -O2
|
||||
CPPFLAGS = -I../../include -DNDEBUG
|
||||
BIN = main$(BIN_SUFFIX)
|
||||
SRC = main.cpp
|
||||
OBJ = $(SRC:.cpp=.o)
|
||||
override LDFLAGS =
|
||||
override LDLIBS =
|
||||
|
||||
.PHONY: build clean
|
||||
build: $(BIN)
|
||||
.PHONY: all clean
|
||||
all: $(BIN)
|
||||
clean:
|
||||
rm -f $(BIN) $(BIN).exe $(BIN).o
|
||||
$(RM) $(BIN)
|
||||
$(RM) $(OBJ)
|
||||
|
||||
$(BIN): $(OBJ)
|
||||
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue