Makefile (955eb5e1) Makefile (85f4cb87)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 13 unchanged lines hidden (view full) ---

22# Use is subject to license terms.
23#
24
25# cmd/sendmail/aux/Makefile
26#
27include ../../Makefile.cmd
28include ../Makefile.cmd
29
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 13 unchanged lines hidden (view full) ---

22# Use is subject to license terms.
23#
24
25# cmd/sendmail/aux/Makefile
26#
27include ../../Makefile.cmd
28include ../Makefile.cmd
29
30PROG= mailstats mconnect vacation mailcompat praliases
30PROG= mailstats mconnect vacation mailcompat praliases
31
32LIBPROG= mail.local smrsh
33
34USRSBINPROG= etrn makemap editmap
35
36LIBSMTPSMPROG= mailq
37
38# $(PROG) by default
39CLOBBERFILES= $(LIBPROG) $(USRSBINPROG) $(LIBSMTPSMPROG)
40
31
32LIBPROG= mail.local smrsh
33
34USRSBINPROG= etrn makemap editmap
35
36LIBSMTPSMPROG= mailq
37
38# $(PROG) by default
39CLOBBERFILES= $(LIBPROG) $(USRSBINPROG) $(LIBSMTPSMPROG)
40
41OBJS= $(PROG:%=%.o)
41OBJS= $(PROG:%=%.o)
42
43.PARALLEL: $(OBJS) $(PROG) $(LIBPROG) $(USRSBINPROG)
44
42
43.PARALLEL: $(OBJS) $(PROG) $(LIBPROG) $(USRSBINPROG)
44
45SRCS= $(PROG:%=%.c)
45SRCS= $(PROG:%=%.c)
46
47editmap := LDLIBS += -lldap
48mail.local := LDLIBS += -lsocket -lnsl -lmail -lldap
49mailq := LDLIBS += -lsecdb
50mailstats := LDLIBS += -lldap
51makemap := LDLIBS += -lldap
52mconnect := LDLIBS += -lsocket -lnsl
53praliases := LDLIBS += -lldap

--- 6 unchanged lines hidden (view full) ---

60ENVDEF= -DNOT_SENDMAIL
61SUNENVDEF= -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
62DBMDEF= -DNDBM -DNEWDB
63
64CPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
65
66# Nearly every support application provides sleep(). This isn't incompatible
67# with libc, but can be confined to the applications themselves.
46
47editmap := LDLIBS += -lldap
48mail.local := LDLIBS += -lsocket -lnsl -lmail -lldap
49mailq := LDLIBS += -lsecdb
50mailstats := LDLIBS += -lldap
51makemap := LDLIBS += -lldap
52mconnect := LDLIBS += -lsocket -lnsl
53praliases := LDLIBS += -lldap

--- 6 unchanged lines hidden (view full) ---

60ENVDEF= -DNOT_SENDMAIL
61SUNENVDEF= -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
62DBMDEF= -DNDBM -DNEWDB
63
64CPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
65
66# Nearly every support application provides sleep(). This isn't incompatible
67# with libc, but can be confined to the applications themselves.
68LDFLAGS += $(MAPFILE.NGB:%=-M%)
68LDFLAGS += $(MAPFILE.NGB:%=-Wl,-M%)
69
70.KEEP_STATE:
71
72all: $(PROG) $(LIBSMTPSMPROG) $(LIBPROG) $(USRSBINPROG)
73
74convtime.o: ../src/convtime.c
75 $(COMPILE.c) ../src/convtime.c
76 $(POST_PROCESS_O)

--- 37 unchanged lines hidden (view full) ---

114
115install: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \
116 $(ROOTLIBSMTPSM)/mailq $(ROOTUSRSBIN)/makemap \
117 $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
118
119clean:
120 $(RM) $(OBJS) *.o
121
69
70.KEEP_STATE:
71
72all: $(PROG) $(LIBSMTPSMPROG) $(LIBPROG) $(USRSBINPROG)
73
74convtime.o: ../src/convtime.c
75 $(COMPILE.c) ../src/convtime.c
76 $(POST_PROCESS_O)

--- 37 unchanged lines hidden (view full) ---

114
115install: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \
116 $(ROOTLIBSMTPSM)/mailq $(ROOTUSRSBIN)/makemap \
117 $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
118
119clean:
120 $(RM) $(OBJS) *.o
121
122lint: lint_PROG
123
124
125include ../../Makefile.targ
122include ../../Makefile.targ