]> git.sur5r.net Git - openldap/blob - servers/slurpd/Make-template
Import glue_sub_init fix from HEAD
[openldap] / servers / slurpd / Make-template
1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1995 Regents of the University of Michigan.
3 # All rights reserved.
4 #
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.
11 #
12 #       Stand-alone LDAP Update RePlication Daemon makefile
13 #
14 #-----------------------------------------------------------------------------
15 LDAPSRC = ../..
16 HDIR    = $(LDAPSRC)/include
17 LDIR    = $(LDAPSRC)/libraries
18 VERSIONFILE = $(LDAPSRC)/build/version
19
20 SRCS    =       admin.c args.c ch_malloc.c config.c detach.c \
21                 fm.c globals.c ldap_op.c lock.c main.c re.c \
22                 reject.c replica.c replog.c ri.c rq.c sanity.c st.c \
23                 tsleep.c
24
25 OBJS    =       admin.o args.o ch_malloc.o config.o detach.o \
26                 fm.o globals.o ldap_op.o lock.o main.o re.o \
27                 reject.o replica.o replog.o ri.o rq.o sanity.o st.o \
28                 tsleep.o
29
30 INCLUDES= -I. -I$(HDIR) $(KRBINCLUDEFLAG)
31 DEFINES = $(DEFS) $(SERVERDEFS)
32 CFLAGS  = $(INCLUDES) $(THREADSINCLUDE) $(DEFINES) $(ACFLAGS) $(THREADS)
33 LDFLAGS = -L$(LDIR) $(KRBLIBFLAG)
34 LIBS    = -lldap -llber -lm -llthread -lldif $(THREADSLIB) $(KRBLIBS) \
35           $(ALIBS)
36
37 all:    FORCE
38         @if [ -z "$(MAKESLAPD)" ]; then \
39                 echo "uncomment the MAKESLAPD line in Make-common to make slurpd"; \
40                 exit 0; \
41         else \
42                 make slurpd; \
43         fi
44
45 slurpd: version.o
46         $(CC) $(ALDFLAGS) -o $@ $(OBJS) version.o $(LDFLAGS) $(LIBS)
47
48 slurpd.pure:    version.o
49         purify $(CC) $(ALDFLAGS) -o $@ $(OBJS) version.o $(LDFLAGS) $(LIBS)
50
51 version.c: $(OBJS) $(LDIR)/liblber/liblber.a $(LDIR)/libldap/libldap.a
52         $(RM) $@
53         (u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
54         t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
55         -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
56         -e "s|%VERSION%|$${v}|" \
57         < Version.c > $@)
58
59 install: $(ETCDIR) $(ETCDIR)/slurpd
60
61 $(ETCDIR)/slurpd:       slurpd
62         $(INSTALL) $(INSTALLFLAGS) -m 755 slurpd $(ETCDIR)
63
64 lint:   FORCE
65         $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
66
67 5lint:  FORCE
68         $(5LINT) $(INCLUDES) $(DEFINES) $(SRCS)
69
70 clean:  FORCE
71         @echo "making clean in `$(PWD)`"
72         $(RM) slurpd *.o core a.out version.c
73
74 depend: FORCE
75         $(MKDEP) $(INCLUDES) $(DEFINES) $(SRCS)
76
77 links:
78         @echo "making links in `$(PWD)`"
79         @$(LN) .src/*.[ch] .
80
81 # DO NOT DELETE THIS LINE -- mkdep uses it.
82 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
83
84 admin.o: admin.c slurp.h ../../include/lber.h ../../include/ldap.h
85 admin.o: ../../include/lthread.h ../../include/portable.h
86 admin.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
87 args.o: args.c ../../include/lber.h ../../include/ldap.h slurp.h
88 args.o: ../../include/lber.h ../../include/ldap.h ../../include/lthread.h
89 args.o: ../../include/portable.h ../../include/ldapconfig.h
90 args.o: ../../include/ldif.h globals.h slurp.h
91 ch_malloc.o: ch_malloc.c ../slapd/slap.h ../../include/avl.h
92 ch_malloc.o: ../../include/lber.h ../../include/ldap.h ../../include/lthread.h
93 ch_malloc.o: ../../include/ldif.h
94 config.o: config.c ../../include/lber.h ../../include/ldap.h slurp.h
95 config.o: ../../include/lber.h ../../include/ldap.h ../../include/lthread.h
96 config.o: ../../include/portable.h ../../include/ldapconfig.h
97 config.o: ../../include/ldif.h globals.h slurp.h
98 detach.o: detach.c ../../include/portable.h
99 fm.o: fm.c slurp.h ../../include/lber.h ../../include/ldap.h
100 fm.o: ../../include/lthread.h ../../include/portable.h
101 fm.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
102 globals.o: globals.c slurp.h ../../include/lber.h ../../include/ldap.h
103 globals.o: ../../include/lthread.h ../../include/portable.h
104 globals.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
105 ldap_op.o: ldap_op.c ../../include/lber.h ../../include/ldap.h
106 ldap_op.o: ../../include/portable.h slurp.h ../../include/lber.h
107 ldap_op.o: ../../include/ldap.h ../../include/lthread.h
108 ldap_op.o: ../../include/portable.h ../../include/ldapconfig.h
109 ldap_op.o: ../../include/ldif.h
110 lock.o: lock.c ../../include/portable.h ../slapd/slap.h ../../include/avl.h
111 lock.o: ../../include/lber.h ../../include/ldap.h ../../include/lthread.h
112 lock.o: ../../include/ldif.h
113 main.o: main.c slurp.h ../../include/lber.h ../../include/ldap.h
114 main.o: ../../include/lthread.h ../../include/portable.h
115 main.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
116 re.o: re.c ../slapd/slap.h ../../include/avl.h ../../include/lber.h
117 re.o: ../../include/ldap.h ../../include/lthread.h ../../include/ldif.h slurp.h
118 re.o: ../../include/lber.h ../../include/ldap.h ../../include/lthread.h
119 re.o: ../../include/portable.h ../../include/ldapconfig.h ../../include/ldif.h
120 re.o: globals.h slurp.h
121 reject.o: reject.c slurp.h ../../include/lber.h ../../include/ldap.h
122 reject.o: ../../include/lthread.h ../../include/portable.h
123 reject.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
124 replica.o: replica.c slurp.h ../../include/lber.h ../../include/ldap.h
125 replica.o: ../../include/lthread.h ../../include/portable.h
126 replica.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
127 replog.o: replog.c ../../include/portable.h slurp.h ../../include/lber.h
128 replog.o: ../../include/ldap.h ../../include/lthread.h ../../include/portable.h
129 replog.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
130 ri.o: ri.c slurp.h ../../include/lber.h ../../include/ldap.h
131 ri.o: ../../include/lthread.h ../../include/portable.h
132 ri.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
133 rq.o: rq.c slurp.h ../../include/lber.h ../../include/ldap.h
134 rq.o: ../../include/lthread.h ../../include/portable.h
135 rq.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
136 sanity.o: sanity.c slurp.h ../../include/lber.h ../../include/ldap.h
137 sanity.o: ../../include/lthread.h ../../include/portable.h
138 sanity.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
139 sanity.o: ../../include/portable.h
140 st.o: st.c slurp.h ../../include/lber.h ../../include/ldap.h
141 st.o: ../../include/lthread.h ../../include/portable.h
142 st.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
143 tsleep.o: tsleep.c slurp.h ../../include/lber.h ../../include/ldap.h
144 tsleep.o: ../../include/lthread.h ../../include/portable.h
145 tsleep.o: ../../include/ldapconfig.h ../../include/ldif.h globals.h slurp.h
146
147 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY