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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
#$Id: Makefile,v 1.3 1997/08/01 01:00:30 srb Exp $
BASENAME= /usr
GCC_WARNINGS = -O2 -pedantic -Wreturn-type -Wunused -Wformat \
-Wpointer-arith -Wconversion -Waggregate-return \
#-Wimplicit -Wshadow #-Wuninitialized
CFLAGS = -O #$(GCC_WARNINGS)
LDFLAGS =
O=o
BINDIR=$(BASENAME)/sbin
MANDIR=$(BASENAME)/man/man8
INSTALL=install -o root -m
BINPERM=02755 -s -g mail
REGPERM=0644
#
# When compiling without APOP support, the md5 library can be omitted.
MD5_OBJ=md5/md5c.$(O)
OBJS=cucipop.$(O) authenticate.$(O) atotime.$(O) locking.$(O) xcreat.$(O) \
$(MD5_OBJ)
all: cucipop
cucipop: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $@ $(LDFLAGS) $(LIBS)
cucipop.$(O): config.h patchlevel.h cucipop.h atotime.h authenticate.h
authenticate.$(O): config.h cucipop.h authenticate.h
locking.$(O): config.h cucipop.h locking.h
atotime.$(O): atotime.h
$(MD5_OBJ): md5/md5c.c md5/md5.h
cd md5; $(CC) $(CFLAGS) -c md5c.c
install: cucipop cucipop.8
$(INSTALL) $(BINPERM) cucipop $(BINDIR)
$(INSTALL) $(REGPERM) cucipop.8 $(MANDIR)
ls -l $(BINDIR)/cucipop $(MANDIR)/cucipop.8
deinstall:
$(RM) $(BINDIR)/cucipop
$(RM) $(MANDIR)/cucipop.8
clean:
rm -f *.$(O) md5/*.$(O) cucipop *core*
|