Lines 1-47
Link Here
|
1 |
LIB = fpx |
|
|
2 |
INCS = fpxlib.h |
3 |
SHLIB_MAJOR= 2 |
4 |
SHLIB_MINOR= 7 |
5 |
WARNS= 3 |
6 |
|
7 |
LIBDIR = ${LOCALBASE}/lib |
8 |
INCSDIR = ${LOCALBASE}/include |
9 |
INCDIR = ${INCSDIR} # for pre-bsd.incs.mk API |
10 |
|
11 |
NO_PROFILE= Don't want it |
12 |
NOPROFILE= ${NO_PROFILE} |
13 |
HAVES= -DHAVE_WCHAR_H -DHAVE_DLFCN_H \ |
14 |
-DHAVE_SYS_TIME_H \ |
15 |
-DHAVE_SYS_PARAM_H -DHAVE_SYS_MOUNT_H |
16 |
CFLAGS+= ${HAVES} |
17 |
|
18 |
CPPS != find ${.CURDIR} -name \*.cpp -print |
19 |
# Some of the .cxx files are #include-ed into others, so can't use `find' here: |
20 |
OLESS := ascii.cxx cdocfile.cxx chinst.cxx dffuncs.cxx dfiter.cxx \ |
21 |
dfstream.cxx difat.cxx dir.cxx dirp.cxx docfile.cxx entry.cxx \ |
22 |
expdf.cxx expiter.cxx expst.cxx fat.cxx funcs.cxx header.cxx \ |
23 |
iter.cxx mem.cxx msf.cxx msfiter.cxx mstream.cxx page.cxx \ |
24 |
refilb.cxx rexpdf.cxx sstream.cxx storage.cxx time.cxx \ |
25 |
vect.cxx wchar.c |
26 |
JPGS != find ${.CURDIR}/jpeg -name \*.c |
27 |
|
28 |
CPPS += ${OLESS:S/^/${.CURDIR}\/oless\//} ${JPGS} |
29 |
|
30 |
SRCS = ${CPPS:T:Nejpeg.c} |
31 |
|
32 |
CXXFLAGS+= -fno-rtti -fno-exceptions -fno-strict-aliasing ${HAVES} |
33 |
LDADD += -L${LOCALBASE}/lib -lm -lstdc++ |
34 |
|
35 |
.PATH: ${CPPS:H} |
36 |
|
37 |
.for d in oless/h jpeg ole basics ri_image oless fpx . |
38 |
CXXFLAGS+= -I${.CURDIR}/$d |
39 |
.endfor |
40 |
|
41 |
CXXFLAGS+= -I${LOCALBASE}/include -D_UNIX |
42 |
|
43 |
.include <bsd.lib.mk> |
44 |
|
45 |
# Work-around the bug in g++4.2's system header: |
46 |
# /usr/include/c++/4.2/bits/basic_ios.h:156: warning: empty body in an if-statement |
47 |
CXXFLAGS:= ${CXXFLAGS:N-Wsystem-headers} |