1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1994 Regents of the University of Michigan.
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
12 # X.500 ldap mailer makefile
14 #-----------------------------------------------------------------------------
16 HDIR = $(LDAPSRC)/include
17 LDIR = $(LDAPSRC)/libraries
18 VERSIONFILE = $(LDAPSRC)/build/version
26 CFLAGS = $(INCLUDES) $(DEFINES) $(ACFLAGS)
28 LIBS = -lldap -llber $(KRBLIBFLAG) $(KRBLIBS) $(ALIBS)
33 $(CC) $(ALDFLAGS) -o $@ $(OBJS) version.o $(LDFLAGS) $(LIBS)
35 version.c: $(OBJS) $(LDIR)/libldap/libldap.a
37 (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
38 t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
39 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
40 -e "s|%VERSION%|$${v}|" \
43 install: mail500 FORCE
44 -$(MKDIR) -p $(ETCDIR)
45 $(INSTALL) $(INSTALLFLAGS) -m 755 mail500 $(ETCDIR)
48 $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
51 $(5LINT) $(INCLUDES) $(DEFINES) $(SRCS)
54 $(RM) *.o core a.out version.c mail500
57 $(MKDEP) $(INCLUDES) $(DEFINES) $(SRCS)
60 @$(LN) .src/README .src/sendmail.cf .src/*.[ch] .
62 # DO NOT DELETE THIS LINE -- mkdep uses it.
63 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
65 main.o: main.c ../../include/portable.h ../../include/lber.h
66 main.o: ../../include/ldap.h ../../include/ldapconfig.h
68 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY