2006-04-18 07:29:41 +00:00
|
|
|
BIN1 = main$(BIN_SUFFIX)
|
|
|
|
SRC1 = main.cpp
|
|
|
|
OBJ1 = $(SRC1:.cpp=.o)
|
|
|
|
BIN2 = main2$(BIN_SUFFIX)
|
|
|
|
SRC2 = main2.cpp
|
|
|
|
OBJ2 = $(SRC2:.cpp=.o)
|
|
|
|
override 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
|
|
|
|
all: $(BIN1) $(BIN2)
|
2006-01-04 23:35:09 +00:00
|
|
|
clean:
|
2006-04-18 07:29:41 +00:00
|
|
|
$(RM) $(BIN1)
|
|
|
|
$(RM) $(OBJ1)
|
|
|
|
$(RM) $(BIN2)
|
|
|
|
$(RM) $(OBJ2)
|
|
|
|
|
|
|
|
$(BIN1): $(OBJ1)
|
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
|
|
|
|
$(BIN2): $(OBJ2)
|
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|