diff options
Diffstat (limited to 'rotord/Makefile')
| -rw-r--r-- | rotord/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/rotord/Makefile b/rotord/Makefile index 6d0e513..c69db89 100644 --- a/rotord/Makefile +++ b/rotord/Makefile @@ -31,7 +31,7 @@ HDREXTS = .h .H .hh .hpp .HPP .h++ .hxx .hp # The pre-processor and compiler options. # Users can override those variables from the command line. CFLAGS = -g -O2 -CXXFLAGS= -g -O2 +CXXFLAGS= # The C program compiler. #CC = gcc @@ -87,7 +87,17 @@ LINK.cxx = $(CXX) $(MY_CFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) # Delete the default suffixes .SUFFIXES: -all: $(PROGRAM) +all: Release + +Release: CXXFLAGS += -O2 + +Release: $(PROGRAM) + +Debug: CXXFLAGS += -g3 + +Debug: $(PROGRAM) + + # Rules for creating dependency files (.d). #------------------------------------------ |
