blob: 644dd0f77e8c3c4e3782870e8e8ac0fbf721090a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
LIB = fpx
INCS = fpxlib.h
SHLIB_MAJOR= 1
SHLIB_MINOR= 2
LIBDIR = ${LOCALBASE}/lib
INCSDIR = ${LOCALBASE}/include
INCDIR = ${INCSDIR} # for pre-bsd.incs.mk API
NOPROFILE= Don't want it
CFLAGS+= -DHAVE_WCHAR_H=1 -DHAVE_DLFCN_H=1 -Werror
CPPS != find ${.CURDIR} -name \*.cpp -print
# Some of the .cxx files are #include-ed into others, so can't use `find' here:
OLESS := ascii.cxx cdocfile.cxx chinst.cxx dffuncs.cxx dfiter.cxx \
dfstream difat.cxx dir.cxx dirp.cxx docfile.cxx entry.cxx \
expdf.cxx expiter expst.cxx fat.cxx funcs.cxx header.cxx \
iter.cxx mem.cxx msf msfiter.cxx mstream.cxx page.cxx \
refilb.cxx rexpdf.cxx sstream.cxx storage.cxx time.cxx \
vect.cxx wchar.c
JPGS != find ${.CURDIR}/jpeg -name \*.c
CPPS += ${OLESS:S/^/${.CURDIR}\/oless\//} ${JPGS}
SRCS = ${CPPS:T}
CXXFLAGS+= -fno-rtti -fno-exceptions -DHAVE_WCHAR_H=1 -DHAVE_DLFCN_H=1
LDADD += -L${LOCALBASE}/lib -ljpeg -lstdc++
.PATH: ${CPPS:H}
.for d in oless/h jpeg ole basics ri_image oless fpx
CXXFLAGS+= -I${.CURDIR}/$d
.endfor
CXXFLAGS+= -I${LOCALBASE}/include -D_UNIX
.include <bsd.lib.mk>
|