18ba7f40e2
Add an option to turn on vendor's experimental optimizations. Be sure to turn on MNG_BUILD_SO only for PIC-objects. Prompted by: edwin's port-version check
22 lines
494 B
Text
22 lines
494 B
Text
LIB= mng
|
|
LDADD= -lm -L${LIBDIR} -lz -llcms -ljpeg
|
|
|
|
NOPROFILE= yes
|
|
SHLIB_MAJOR?= 1
|
|
SHLIB_MINOR?= 0
|
|
|
|
SRCS!= ${MAKE} -f ${.CURDIR}/makefiles/makefile.unix -V SOURCES
|
|
|
|
CFLAGS+= -I${INCDIR}
|
|
.if ${WITH_MNG_OPTIMIZE} == "true"
|
|
.for f in CHUNKINITFREE OBJCLEANUP CHUNKASSIGN CHUNKREADER
|
|
CFLAGS+= -DMNG_OPTIMIZE_$f
|
|
.endfor
|
|
.endif
|
|
|
|
INCS= libmng.h libmng_conf.h libmng_types.h
|
|
INCSDIR= ${LOCALBASE}/include
|
|
INCDIR= ${INCSDIR} # for pre-bsd.incs.mk API
|
|
LIBDIR= ${LOCALBASE}/lib
|
|
|
|
.include <bsd.lib.mk>
|