#
#
#
#     Makefile
#
#
#

# installation location
BINDIR=/var/qmail/bin

# DEBUG: change these for debugging (disable both for production)
CDEBUG=-g -Wall

# Target executables
TARGETS=qmail-listfile

# suffix rules
.SUFFIXES=.c .o

all: $(TARGETS)

qmail-listfile: %: %.o
	g++ -o qmail-listfile qmail-listfile.o -lmyutil++

.cc.o: %.o: %.cc
	g++ -Wall $(CDEBUG) $(CFLAGS) -c $<

clean:
	rm -f $(TARGETS) *.o core

strip: $(TARGETS)
	strip --strip-unneeded $(TARGETS)

rebuild: clean all

install: $(TARGETS)
	for i in $(TARGETS) ; do install -g root -o root $$i $(BINDIR) ; done

install-strip: strip install
