2006-04-18 07:29:41 +00:00
|
|
|
BIN = main$(BIN_SUFFIX)
|
|
|
|
SRC = main.cpp
|
|
|
|
OBJ = $(SRC:.cpp=.o)
|
|
|
|
override CXXFLAGS = $(CXXWARNFLAGS) -g -fexpensive-optimizations -O3
|
2005-09-24 23:08:48 +00:00
|
|
|
|
2006-04-18 07:29:41 +00:00
|
|
|
.PHONY: all clean
|
|
|
|
all: $(BIN)
|
2006-01-04 23:35:09 +00:00
|
|
|
clean:
|
2006-04-18 07:29:41 +00:00
|
|
|
$(RM) $(BIN)
|
|
|
|
$(RM) $(OBJ)
|
|
|
|
|
|
|
|
$(BIN): $(OBJ)
|
|
|
|
$(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|