Makefile (5661bb7641e85c46713da7a3002b29ecd2c3daf0) | Makefile (d17be682a2c70b4505d43c830bbd2603da11918d) |
---|---|
1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at --- 4 unchanged lines hidden (view full) --- 13# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 14# Copyright 2014 Alexander Pyhalov 15# Copyright (c) 2018, Joyent, Inc. 16# 17 18 19LIBPROG= mailwrapper 20 | 1# 2# This file and its contents are supplied under the terms of the 3# Common Development and Distribution License ("CDDL"), version 1.0. 4# You may only use this file in accordance with the terms of version 5# 1.0 of the CDDL. 6# 7# A full copy of the text of the CDDL should have accompanied this 8# source. A copy of the CDDL is also available via the Internet at --- 4 unchanged lines hidden (view full) --- 13# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 14# Copyright 2014 Alexander Pyhalov 15# Copyright (c) 2018, Joyent, Inc. 16# 17 18 19LIBPROG= mailwrapper 20 |
21PROG= $(LIBPROG) | 21PROG= $(LIBPROG) |
22 23include ../Makefile.cmd 24 25MWOBJS= fgetln.o fparseln.o mailwrapper.o 26 27CLOBBERFILES= $(PROG) 28CLEANFILES= $(MWOBJS) 29 | 22 23include ../Makefile.cmd 24 25MWOBJS= fgetln.o fparseln.o mailwrapper.o 26 27CLOBBERFILES= $(PROG) 28CLEANFILES= $(MWOBJS) 29 |
30SRCS= $(MWOBJS:%.o=%.c) 31 | |
32CPROG= mailwrapper | 30CPROG= mailwrapper |
33CPROGSRC= $(CPROG:%=_%.c) | 31CPROGSRC= $(CPROG:%=_%.c) |
34 35CFS= mailer.conf 36 37ROOTETCFILES=$(CFS:%=$(ROOTETC)/%) 38 39$(ROOTETCFILES) := FILEMODE = 0644 40 41# installed modules 42ROOTLIBPROG= $(LIBPROG:%=$(ROOTLIB)/%) 43 44ROOTSYMLINKS= $(ROOTBIN)/mailq \ 45 $(ROOTLIB)/sendmail \ 46 $(ROOTUSRSBIN)/newaliases \ 47 $(ROOTUSRSBIN)/sendmail 48 49CPPFLAGS = -I. $(CPPFLAGS.master) 50 | 32 33CFS= mailer.conf 34 35ROOTETCFILES=$(CFS:%=$(ROOTETC)/%) 36 37$(ROOTETCFILES) := FILEMODE = 0644 38 39# installed modules 40ROOTLIBPROG= $(LIBPROG:%=$(ROOTLIB)/%) 41 42ROOTSYMLINKS= $(ROOTBIN)/mailq \ 43 $(ROOTLIB)/sendmail \ 44 $(ROOTUSRSBIN)/newaliases \ 45 $(ROOTUSRSBIN)/sendmail 46 47CPPFLAGS = -I. $(CPPFLAGS.master) 48 |
51LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2 52 | |
53SMOFF += all_func_returns 54 55# conditional assignments 56# 57all:= TARGET= all 58install:= TARGET= install 59clean:= TARGET= clean 60clobber:= TARGET= clobber | 49SMOFF += all_func_returns 50 51# conditional assignments 52# 53all:= TARGET= all 54install:= TARGET= install 55clean:= TARGET= clean 56clobber:= TARGET= clobber |
61lint:= TARGET= lint | |
62 63# install rules 64$(ROOTINC)/% : % 65 $(INS.file) 66 67.KEEP_STATE: 68 69.PARALLEL: $(MWOBJS) $(OBJS) --- 18 unchanged lines hidden (view full) --- 88 $(RM) $@; $(SYMLINK) ../lib/mailwrapper $@ 89 90$(ROOTUSRSBIN)/sendmail: 91 $(RM) $@; $(SYMLINK) ../lib/mailwrapper $@ 92 93$(ROOTETCMAIL)/%: % 94 $(INS.file) 95 | 57 58# install rules 59$(ROOTINC)/% : % 60 $(INS.file) 61 62.KEEP_STATE: 63 64.PARALLEL: $(MWOBJS) $(OBJS) --- 18 unchanged lines hidden (view full) --- 83 $(RM) $@; $(SYMLINK) ../lib/mailwrapper $@ 84 85$(ROOTUSRSBIN)/sendmail: 86 $(RM) $@; $(SYMLINK) ../lib/mailwrapper $@ 87 88$(ROOTETCMAIL)/%: % 89 $(INS.file) 90 |
96lint: 97 $(LINT.c) $(SRCS) 98 | |
99clean: 100 $(RM) $(OBJS) $(MWOBJS) mailwrapper 101 102clobber: clean 103 $(RM) $(ROOTSYMLINKS) $(ROOTLIBPROG) $(ROOTETCFILES) | 91clean: 92 $(RM) $(OBJS) $(MWOBJS) mailwrapper 93 94clobber: clean 95 $(RM) $(ROOTSYMLINKS) $(ROOTLIBPROG) $(ROOTETCFILES) |