36 lines
914 B
Makefile
36 lines
914 B
Makefile
#
|
|
# GLOBAL MAKE CONFIGURATION
|
|
#
|
|
|
|
DESTDIR=/usr/local
|
|
SHARED_FILES=$(DESTDIR)/share/libimage
|
|
HTML_DIR=$(DESTDIR)/html
|
|
|
|
#-----------------------------------------------------------------
|
|
#
|
|
# pour le debuging: option -g
|
|
# pour le profiling: option -pg
|
|
# pour tracer plein de trucs: -DDEBUG_LEVEL=1
|
|
# 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
|
|
#
|
|
# --> see file 'PORTING.txt' for porting tips on misc
|
|
# architextures (just sparc64 for now)
|
|
#
|
|
|
|
LIBIMG_OPT=-DFORCE_ABORT=1 -DDEBUG_LEVEL=0 -DIMGCOMMENT=0
|
|
CC_OPTS=-Wall -W -g -ansi -Wmissing-prototypes -fPIC -no-pie
|
|
CC_HACKS=-DNEED_ALLOCA_H
|
|
CFLAGS= $(CC_OPTS) \
|
|
$(LIBIMG_OPT) \
|
|
$(CC_HACKS) \
|
|
-DDESTDIR=\"$(DESTDIR)\" \
|
|
-DSHAREDIR=\"$(SHARED_FILES)\" \
|
|
-DCC_OPTS=\"'$(CC_OPTS)'\"
|
|
LINKOPT=-lm
|
|
RANLIB=wc -c
|
|
|
|
# modify it 'as you like'
|
|
AR=ar
|