1 # $Id: Makefile,v 1.26 2005/04/05 19:40:46 cpressey Exp $
3 OSTYPE!=sysctl -n kern.ostype
6 OBJS= fn_disk.o fn_configure.o fn_diagnostic.o fn_subpart_hammer.o \
7 fn_subpart.o fn_install.o flow.o main.o
9 WARNS= -W -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
10 -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual \
11 -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts \
12 -Winline -Wnested-externs -Wredundant-decls
14 CFLAGS+=${WARNS} -I/usr/local/include
18 LDADD= -L/usr/local/lib/ -laura -ldfui -linstaller
20 .if ${OSTYPE} == "NetBSD"
21 CFLAGS+= -I/usr/pkg/include
22 LDADD+= -L/usr/pkg/lib
26 # Localization (gettext)
27 LOCALEDIR= /usr/local/share/locale
29 CFLAGS+= -DLOCALEDIR=\"${LOCALEDIR}\"
30 CFLAGS+= -DPACKAGE=\"${PACKAGE}\"
40 # To build this straight from a checkout of the CVS tree, *without* first
41 # installing the support libraries, do a 'make in_cvs'. This causes
42 # search paths and symbolic links to be set up so that the build process
43 # can find the needed header files and libraries.
46 cd ../../lib/libaura && ${MAKE} in_cvs
47 ln -sf ../../lib/libaura aura
48 cd ../../lib/libdfui && ${MAKE} in_cvs
49 ln -sf ../../lib/libdfui dfui
50 cd ../../lib/libinstaller && ${MAKE} in_cvs
51 ln -sf ../../lib/libinstaller installer
56 LDADD+= -L../../lib/libaura -L../../lib/libdfui -L../../lib/libinstaller
62 ${CC} ${CFLAGS} ${OBJS} ${LDADD} -o ${PROG}
64 # NLS (translated text) compilations:
67 for _language in ${LANGUAGES}; do \
68 msgfmt -o po/$${_language}.mo po/$${_language}; \
71 # Translator templates:
74 xgettext -s --no-location --keyword=_ -o po/${PROG}.pot *.c
76 # Cleaning up after ourselves:
79 rm -f aura dfui installer
80 rm -rf ${PROG} *.o po/*.mo
82 # Testing from within the CVS checkout.
85 env LD_LIBRARY_PATH="../../lib/libaura:../../lib/libdfui:../../lib/libinstaller" ./${PROG}