Can compile a debug or release version

feature/19
Daniel Warner 2011-12-11 13:03:45 +00:00
parent 58579b2841
commit 9c936a279d
1 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,13 @@
CC=g++ CC=g++
AR=ar AR=ar
CFLAGS=-c -Wall -g -pedantic -ansi
DEBUG ?= 0
ifeq ($(DEBUG), 1)
CFLAGS=-c -Wall -O0 -g -pedantic -Wextra -Wconversion -march=native -Wno-long-long
else
CFLAGS=-c -Wall -O2 -pedantic -Wextra -Wconversion -march=native -Wno-long-long
endif
LDFLAGS= LDFLAGS=
SOURCES=CoordGeodetic.cpp \ SOURCES=CoordGeodetic.cpp \
@ -11,7 +18,7 @@ SOURCES=CoordGeodetic.cpp \
Observer.cpp \ Observer.cpp \
OrbitalElements.cpp \ OrbitalElements.cpp \
SGP4.cpp \ SGP4.cpp \
Timespan.cpp \ Timespan.cpp \
Tle.cpp \ Tle.cpp \
Vector.cpp Vector.cpp
OBJECTS=$(SOURCES:.cpp=.o) OBJECTS=$(SOURCES:.cpp=.o)