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 rcpt500 mail query responder makefile
14 #-----------------------------------------------------------------------------
16 HDIR = $(LDAPSRC)/include
17 LDIR = $(LDAPSRC)/libraries
18 VERSIONFILE = $(LDAPSRC)/build/version
20 SRCS= main.c cmds.c help.c query.c
21 OBJS= main.o cmds.o help.o query.o
25 CFLAGS = $(INCLUDES) $(DEFINES) $(ACFLAGS)
26 LIBS = -lldap -llber $(KRBLIBFLAG) $(KRBLIBS) $(ALIBS)
31 $(CC) $(ALDFLAGS) -o $@ $(OBJS) version.o -L$(LDIR) $(LIBS)
33 version.c: $(OBJS) $(LDIR)/libldap.a
35 (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
36 t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
37 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
38 -e "s|%VERSION%|$${v}|" \
41 install: rcpt500 rcpt500.help FORCE
42 -$(MKDIR) -p $(ETCDIR)
43 $(INSTALL) $(INSTALLFLAGS) -m 755 rcpt500 $(ETCDIR)
44 $(INSTALL) $(INSTALLFLAGS) -m 644 rcpt500.help $(ETCDIR)
47 $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
50 $(5LINT) $(INCLUDES) $(DEFINES) $(SRCS)
53 $(RM) *.o core a.out version.c rcpt500
56 $(MKDEP) $(INCLUDES) $(DEFINES) $(SRCS)
59 @$(LN) .src/README .src/*.[ch] .src/*.help .
61 # DO NOT DELETE THIS LINE -- mkdep uses it.
62 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
64 main.o: main.c ../../include/portable.h ../../include/ldapconfig.h rcpt500.h
65 cmds.o: cmds.c rcpt500.h
66 help.o: help.c ../../include/portable.h ../../include/ldapconfig.h rcpt500.h
67 query.o: query.c ../../include/lber.h ../../include/ldap.h
68 query.o: ../../include/portable.h ../../include/ldapconfig.h
69 query.o: ../../include/disptmpl.h rcpt500.h
71 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY