1 ## Makefile for miscellaneous stuff
3 ## No proper build system here. Just kludgy hacks.
13 cdb-probe cdb-check-domain \
22 cdb-assign
.1 cdb-list
.1 cdb-probe
.1 cdb-check-domain
.1 \
24 unfwd
.1 splitconf
.1 locking
.1 if-mtu
.1
31 CFLAGS
= -O2
-g
-pedantic
-Wall
-DVERSION
=\"$(VERSION
)\"
32 LINK
= $(LD
) $(LDFLAGS
) -o
$@
$^
35 bindir = $(prefix)/bin
36 mandir = $(prefix)/man
37 man1dir = $(mandir)/man1
38 man8dir = $(mandir)/man8
39 libdir = $(prefix)/lib
41 all: $(PROGS
) $(OTHERS
)
44 [ -d
$(bindir) ] ||
install -d
$(bindir)
45 install -m775
$(PROGS
) $(SCRIPTS
) $(bindir)
46 [ -d
$(man1dir) ] ||
install -d
$(man1dir)
47 install -m644
$(MAN1
) $(man1dir)
48 [ -d
$(man8dir) ] ||
install -d
$(man8dir)
49 install -m644
$(MAN8
) $(man8dir)
50 [ -d
$(libdir) ] ||
install -d
$(libdir)
51 install -m644 xtitle.so
$(libdir)
53 qmail-checkspam
: qmail-checkspam.o
56 cdb-probe
: cdb-probe.o
59 cdb-check-domain
: cdb-check-domain.o
66 $(CC
) $(CFLAGS
) -c
-fpic
-I
/usr
/include/bash
-DBASH_BUILTIN
-o
$@
$^
71 $(LINK
) -lcatacomb
-lmLib
79 clean:; rm -f
*.o
*~
$(PROGS
) $(OTHERS
)
81 .PHONY
: all clean install