3de4a064cb
- Makefiles can now be called from sub directories - Makefiles know includes and recompile if they are changed (linux, macosx) - Build all tests except SingletonDll with the static library (linux, macosx) git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@695 7ec92016-0320-0410-acc4-a06ded1c099a
17 lines
294 B
Makefile
Executable file
17 lines
294 B
Makefile
Executable file
include ../Makefile.common
|
|
|
|
BIN := main$(BIN_SUFFIX)
|
|
SRC := main.cpp strong.cpp LockTest.cpp
|
|
OBJ := $(SRC:.cpp=.o)
|
|
LDLIBS += -lpthread
|
|
|
|
.PHONY: all clean
|
|
all: $(BIN)
|
|
clean: cleandeps
|
|
$(RM) $(BIN)
|
|
$(RM) $(OBJ)
|
|
|
|
$(BIN): $(OBJ)
|
|
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
include ../../Makefile.deps
|