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++
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=
SOURCES=CoordGeodetic.cpp \