Makerules (808B)
1 # Configuration for the Makefile 2 3 OS ?= Linux 4 5 CFLAGS += -Wall 6 7 ifeq "$(build)" "debug" 8 CFLAGS += -pipe -g -DDEBUG 9 else ifeq "$(build)" "profile" 10 CFLAGS += -pipe -O2 -DNDEBUG -pg 11 LDFLAGS += -pg 12 else ifeq "$(build)" "release" 13 CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer 14 else ifeq "$(build)" "coverage" 15 CFLAGS += -pipe -g -DDEBUG -pg -fprofile-arcs -ftest-coverage 16 LIBS += -lgcov 17 else ifeq "$(build)" "native" 18 CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer -march=native -mfpmath=sse 19 else ifeq "$(build)" "memento" 20 CFLAGS += -pipe -g -DMEMENTO -DDEBUG 21 else 22 $(error unknown build setting: '$(build)') 23 endif 24 25 SYS_CURL_DEPS = -lpthread -lrt 26 27 SYS_FREETYPE_CFLAGS = 28 SYS_FREETYPE_LIBS = 29 SYS_OPENJPEG_CFLAGS = 30 SYS_OPENJPEG_LIBS = 31 SYS_JBIG2DEC_LIBS = -ljbig2dec 32 SYS_JPEG_LIBS = -ljpeg 33 SYS_ZLIB_LIBS = -lz