Separated release and debug builds

This commit is contained in:
BLM 2015-07-21 16:49:01 -05:00
parent cd7dea33fc
commit 3b4c542117
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
#The build configuration
CONFIG := release
EXTENSION := pg_libphonenumber
version := 1.0
extension_script := $(EXTENSION)--$(version).sql
@ -5,7 +8,10 @@ DATA_built := $(extension_script)
MODULE_big := pg_libphonenumber
OBJS := pg_libphonenumber.o short_phone_number.o
PG_CPPFLAGS := -fPIC -std=c++11 -g
PG_CPPFLAGS := -fPIC -std=c++11
ifeq ($(CONFIG),debug)
PG_CPPFLAGS += -g
endif
SHLIB_LINK := -lphonenumber -lstdc++
EXTRA_CLEAN := $(extension_script) get_sizeof_phone_number