File: Makefile.in

package info (click to toggle)
zmailer 2.99.55-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 19,516 kB
  • ctags: 9,694
  • sloc: ansic: 120,953; sh: 3,862; makefile: 3,166; perl: 2,695; python: 115; awk: 22
file content (140 lines) | stat: -rw-r--r-- 4,330 bytes parent folder | download
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
PROGRAM=	scheduler
#
# ZMailer Scheduler makefile
#
srcdir = @srcdir@
VPATH = @srcdir@
@SET_MAKE@
SHELL=		/bin/sh
CC=		@CC@
COPTS=		@CFLAGS@
CPPFLAGS=	@CPPFLAGS@
CPPDEP=		@CPPDEP@
TOPDIR=		..
MAILBIN=	$(prefix)@MAILBIN@
DEFS=		@DEFS@
INSTALL=	@INSTALL@
SCHEDULER_INCL=	@GENINCL@ @INCLRESOLV@ @INCLWRAP@
#   possibly add following to SCHEDULER_LIB:  @GETPWLIB@
SCHEDULER_LIB=	-lsfio @LIBWRAP@ @LIBRESOLV@ @LIBSOCKET@ $(LIBMALLOC)
MAILQ_INCL=	@GENINCL@ @INCLRESOLV@
MAILQ_LIB=	@LIBRESOLV@ @LIBSOCKET@ $(LIBMALLOC)
#   Above the  LIBSOCKET (for SysVR4) must be last
#
INCL=		-I$(srcdir)/$(TOPDIR)/include -I$(TOPDIR)/include -I$(TOPDIR)
CFLAGS=		$(COPTS) $(CPPFLAGS) $(DEFS) $(INCL) $(SCHEDULER_INCL)
MQCFLAGS=	$(COPTS) $(CPPFLAGS) $(DEFS) $(INCL) $(MAILQ_INCL)
LIBMALLOC=	@LIBMALLOC@
LIBMALLOCDEB=	$(TOPDIR)/libmalloc/libmalloc_d.a-a
LIB=		-L$(TOPDIR)/libs -lzm -lzc  -lta
LIBDEB=		$(TOPDIR)/libs/libtag $(TOPDIR)/libs/libta.a \
		$(TOPDIR)/libs/libzm.a $(TOPDIR)/libs/libzc.a
LINTLIB=	$(TOPDIR)/lib/llib-llibz.ln $(TOPDIR)/libc/llib-llibzc.ln $(TOPDIR)/transports/libta/llib-llibta.ln
#
OBJS=	scheduler.o readconfig.o conf.o agenda.o transport.o pipes.o  \
	update.o qprint.o msgerror.o resources.o threads.o wantconn.o \
	mq2.o mq2auth.o
SOURCE=	scheduler.c readconfig.c conf.c agenda.c transport.c pipes.c  \
	update.c qprint.c msgerror.c resources.c threads.c wantconn.c \
	mq2.c mq2auth.c

all:	$(LIBDEB) $(PROGRAM) mailq

$(PROGRAM): $(LIBDEB) $(OBJS) version.o
	$(CC) $(CFLAGS) -o $@.x $(OBJS) version.o $(LIB) $(SCHEDULER_LIB)
	mv $@.x $@

$(PROGRAM).third: $(PROGRAM)
	-rm -f $(PROGRAM)
	make $(PROGRAM) LIBMALLOC=
	atom -tool third -o $(PROGRAM).third $(PROGRAM)

version.c: $(OBJS) $(TOPDIR)/Makefile
	@$(MAKE) $(MFLAGS) -f $(TOPDIR)/Makefile $@

mailq:	mailq.o conf.o version.o $(LIBDEB)
	$(CC) $(CFLAGS) -o $@ mailq.o conf.o version.o $(LIB) $(MAILQ_LIB)

mailq.o: $(srcdir)/mailq.c
	$(CC) $(MQCFLAGS) -c $(srcdir)/mailq.c

install:	$(PROGRAM) install-mailq
	$(INSTALL) -m 0755 $(PROGRAM) $(MAILBIN)/$(PROGRAM).x
	-mv $(MAILBIN)/$(PROGRAM).x $(MAILBIN)/$(PROGRAM)

install-mailq: mailq
	$(INSTALL) -m 0755 mailq $(MAILBIN)/mailq.x
	-mv $(MAILBIN)/mailq.x $(MAILBIN)/mailq

tags:
	ctags *.c *.h

clean:
	-rm -f $(PROGRAM) mailq *.o *.out tags make.log *~
	-rm -f *.log *.3rd *.3log
distclean: clean
	-rm -f Makefile

lint:	$(LINTLIB)
	lint $(DEFS) $(INCL) $(SCHEDULER_INCL) $(LINTLIB) $(SOURCE)

$(TOPDIR)/libs/libtag:
	cd $(TOPDIR)/libs; $(MAKE) $(MFLAGS) libtag

$(TOPDIR)/transports/libta/llib-llibta.ln:
	cd $(TOPDIR)/transports/libta ; $(MAKE) $(MFLAGS) lintlib

$(TOPDIR)/libc/llib-llibzc.ln:
	cd $(TOPDIR)/libc ; $(MAKE) $(MFLAGS) lintlib

$(TOPDIR)/lib/llib-llibz.ln:
	cd $(TOPDIR)/lib ; $(MAKE) $(MFLAGS) lintlib

$(TOPDIR)/transports/libta/libta.a-a:
	cd $(TOPDIR)/transports/libta ; $(MAKE) $(MFLAGS)
$(TOPDIR)/transports/libta/libta.a:
	cd $(TOPDIR)/transports/libta ; $(MAKE) $(MFLAGS)

$(TOPDIR)/libc/libzc.a-a:
	cd $(TOPDIR)/libc ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libc/libzc.a:
	cd $(TOPDIR)/libc ; $(MAKE) $(MFLAGS)

$(TOPDIR)/lib/libzm.a-a:
	cd $(TOPDIR)/lib ; $(MAKE) $(MFLAGS)
$(TOPDIR)/lib/libzm.a:
	cd $(TOPDIR)/lib ; $(MAKE) $(MFLAGS)

$(TOPDIR)/libsh/libsh.a-a:
	cd $(TOPDIR)/libsh ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libsh/libsh.a:
	cd $(TOPDIR)/libsh ; $(MAKE) $(MFLAGS)

$(TOPDIR)/libmalloc/libmalloc.a:
	cd $(TOPDIR)/libmalloc ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libmalloc/libmalloc_d.a:
	cd $(TOPDIR)/libmalloc ; $(MAKE) $(MFLAGS)
$(TOPDIR)/libmalloc/libmalloc_d.a-a:
	cd $(TOPDIR)/libmalloc ; $(MAKE) $(MFLAGS)

depend:
	CPPDEP="${CPPDEP}" $(TOPDIR)/bin/mkdep $(CFLAGS) $(SOURCE)

scheduler.o: scheduler.c   scheduler.h prototypes.h
readconfig.o: readconfig.c scheduler.h prototypes.h
conf.o:      conf.c
agenda.o:    agenda.c    scheduler.h prototypes.h
transport.o: transport.c scheduler.h prototypes.h
pipes.o:     pipes.c     scheduler.h prototypes.h
update.o:    update.c    scheduler.h prototypes.h
qprint.o:    qprint.c    scheduler.h prototypes.h
msgerror.o:  msgerror.c  scheduler.h prototypes.h
resources.o: resources.c 
threads.o:   threads.c   scheduler.h prototypes.h
wantconn.o:  wantconn.c
mq2.o:       mq2.c       scheduler.h prototypes.h
mq2auth.o:   mq2auth.c   scheduler.h prototypes.h

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.