2006-07-14 07:31:37 +00:00
|
|
|
include ../Makefile.common
|
|
|
|
|
|
|
|
BIN1 := SmallObjBench$(BIN_SUFFIX)
|
|
|
|
SRC1 := SmallObjBench.cpp
|
|
|
|
OBJ1 := $(SRC1:.cpp=.o)
|
|
|
|
BIN2 := SmallObjSingleton$(BIN_SUFFIX)
|
|
|
|
SRC2 := SmallObjSingleton.cpp
|
|
|
|
OBJ2 := $(SRC2:.cpp=.o)
|
2011-10-17 20:14:53 +00:00
|
|
|
BIN3 := DefaultAlloc$(BIN_SUFFIX)
|
|
|
|
SRC3 := DefaultAlloc.cpp
|
|
|
|
OBJ3 := $(SRC1:.cpp=.o)
|
2006-07-14 07:31:37 +00:00
|
|
|
CXXFLAGS := $(CXXWARNFLAGS) -g -fexpensive-optimizations -O3
|
2006-01-09 23:56:13 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
.PHONY: all clean
|
2011-10-17 20:14:53 +00:00
|
|
|
all: $(BIN1) $(BIN2) $(BIN3)
|
2006-07-14 07:31:37 +00:00
|
|
|
clean: cleandeps
|
2006-04-18 07:29:41 +00:00
|
|
|
$(RM) $(BIN1)
|
|
|
|
$(RM) $(OBJ1)
|
|
|
|
$(RM) $(BIN2)
|
|
|
|
$(RM) $(OBJ2)
|
2011-10-17 20:14:53 +00:00
|
|
|
$(RM) $(BIN3)
|
|
|
|
$(RM) $(OBJ3)
|
2006-04-18 07:29:41 +00:00
|
|
|
|
|
|
|
$(BIN1): $(OBJ1)
|
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
|
|
|
|
$(BIN2): $(OBJ2)
|
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
2006-07-14 07:31:37 +00:00
|
|
|
|
2011-10-17 20:14:53 +00:00
|
|
|
$(BIN3): $(OBJ3)
|
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
|
2006-07-14 07:31:37 +00:00
|
|
|
include ../../Makefile.deps
|