2022-06-26 21:22:12 +11:00
|
|
|
#
|
|
|
|
# GLOBAL MAKE CONFIGURATION
|
2022-07-07 21:52:00 +11:00
|
|
|
# For the "tTh" image library
|
2022-06-26 21:22:12 +11:00
|
|
|
#
|
|
|
|
|
|
|
|
DESTDIR=/usr/local
|
|
|
|
SHARED_FILES=$(DESTDIR)/share/libimage
|
|
|
|
HTML_DIR=$(DESTDIR)/html
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------
|
|
|
|
#
|
2022-09-16 02:47:16 +11:00
|
|
|
# pour le debuging: option -g
|
|
|
|
# pour le profiling: option -pg
|
|
|
|
# pour tracer plein de trucs: -DDEBUG_LEVEL=1
|
2022-06-26 21:22:12 +11:00
|
|
|
# if IMGCOMMENT, the image comment is written to the TGA file,
|
|
|
|
# but this files can't be loaded by Xv...
|
|
|
|
# pour coredumper dans les situations graves: -DABORT=1
|
|
|
|
#
|
2022-07-07 21:52:00 +11:00
|
|
|
# use -Wmissing-prototypes ?
|
2022-06-26 21:22:12 +11:00
|
|
|
|
2022-09-21 09:06:11 +11:00
|
|
|
LIBIMG_OPT=-DFORCE_ABORT=0 -DDEBUG_LEVEL=0 -DIMGCOMMENT=0
|
|
|
|
CC_OPTS=-Wall -W -g -ansi -O3 -fPIC -no-pie
|
2022-06-26 21:22:12 +11:00
|
|
|
CC_HACKS=-DNEED_ALLOCA_H
|
2022-09-21 09:06:11 +11:00
|
|
|
|
2022-06-26 21:22:12 +11:00
|
|
|
CFLAGS= $(CC_OPTS) \
|
|
|
|
$(LIBIMG_OPT) \
|
|
|
|
$(CC_HACKS) \
|
|
|
|
-DDESTDIR=\"$(DESTDIR)\" \
|
|
|
|
-DSHAREDIR=\"$(SHARED_FILES)\" \
|
|
|
|
-DCC_OPTS=\"'$(CC_OPTS)'\"
|
2022-09-21 09:06:11 +11:00
|
|
|
|
2022-06-26 21:22:12 +11:00
|
|
|
LINKOPT=-lm
|
|
|
|
RANLIB=wc -c
|
|
|
|
|
|
|
|
# modify it 'as you like'
|
|
|
|
AR=ar
|
2022-11-26 21:39:22 +11:00
|
|
|
|
|
|
|
#
|
|
|
|
# and valgrind is your friend
|
|
|
|
#
|