summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbwarsaw1998-05-26 18:24:18 +0000
committerbwarsaw1998-05-26 18:24:18 +0000
commitb630ef6bf897c2c3f7f808f075c02eef1f3ed127 (patch)
tree503d968f6618a54578fc858a0ff64ba30be77075 /src
parent1dd964487dab7f714197f4f2f84e349f6d828d61 (diff)
downloadmailman-b630ef6bf897c2c3f7f808f075c02eef1f3ed127.tar.gz
mailman-b630ef6bf897c2c3f7f808f075c02eef1f3ed127.tar.zst
mailman-b630ef6bf897c2c3f7f808f075c02eef1f3ed127.zip
Autoconf template for this directory's Makefile.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in124
1 files changed, 124 insertions, 0 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
new file mode 100644
index 000000000..d25ccd3ee
--- /dev/null
+++ b/src/Makefile.in
@@ -0,0 +1,124 @@
+# Copyright (C) 1998 by the Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+# NOTE: Makefile.in is converted into Makefile by the configure script
+# in the parent directory. Once configure has run, you can recreate
+# the Makefile by running just config.status.
+
+# Variables set by configure
+
+VERSION= @VERSION@
+
+prefix= @prefix@
+exec_prefix= @exec_prefix@
+VPATH= @srcdir@
+srcdir= @srcdir@
+bindir= @bindir@
+
+CC= @CC@
+CHMOD= @CHMOD@
+INSTALL= @INSTALL@
+PYTHON= @PYTHON@
+
+DEFS= @DEFS@
+
+# UIDs and GIDs
+MAIL_UID= @MAIL_UID@
+MAIL_GID= @MAIL_GID@
+ALIAS_UID= @ALIAS_UID@
+ALIAS_GID= @ALIAS_GID@
+CGI_UID= @CGI_UID@
+CGI_GID= @CGI_GID@
+
+# Customizable but not set by configure
+
+OPT= @OPT@
+CFLAGS= $(OPT) $(DEFS)
+CGIDIR= $(exec_prefix)/cgi-bin
+MAILDIR= $(exec_prefix)/mail
+
+SHELL= /bin/sh
+
+#ALIAS_FLAGS= -DALIAS_UID=$(ALIAS_UID) \
+# -DALIAS_GID=$(ALIAS_GID)
+
+MAIL_FLAGS= -DMAIL_UID=$(MAIL_UID) \
+ -DMAIL_GID=$(MAIL_GID)
+
+CGI_FLAGS= -DCGI_UID=$(CGI_UID) \
+ -DCGI_GID=$(CGI_GID)
+
+COMMON_FLAGS= -DPREFIX="\"$(prefix)\"" \
+ -DPYTHON="\"$(PYTHON)\""
+
+
+# Modes for directories and executables created by the install
+# process. Default to group-writable directories but
+# user-only-writable for executables.
+DIRMODE= 775
+EXEMODE= 755
+INSTALL_PROGRAM=$(INSTALL) -m $(EXEMODE)
+
+# Fixed definitions
+
+CGI_PROGS= admin admindb archives edithtml options \
+listinfo subscribe roster handle_opts private
+
+MAIL_PROGS= wrapper
+
+#ALIAS_PROGS= addaliases
+
+PROGRAMS= $(CGI_PROGS) $(MAIL_PROGS) $(ALIAS_PROGS)
+
+
+# Rules
+
+all: $(PROGRAMS)
+
+wrapper: $(srcdir)/mail-wrapper.c common.o
+ $(CC) -I. $(MAIL_FLAGS) $(CFLAGS) common.o -o $@ $<
+
+#addaliases: $(srcdir)/alias-wrapper.c common.o
+# $(CC) -I. $(ALIAS_FLAGS) $(CFLAGS) -o $@ $<
+
+$(CGI_PROGS): $(srcdir)/cgi-wrapper.c common.o
+ $(CC) -DSCRIPT="\"$@\"" -I. $(CGI_FLAGS) $(CFLAGS) common.o -o $@ $<
+
+common.o: $(srcdir)/common.c
+ $(CC) -c -I. $(COMMON_FLAGS) $(CFLAGS) $<
+
+install: all
+ for f in $(CGI_PROGS); \
+ do \
+ $(INSTALL_PROGRAM) $$f $(CGIDIR); \
+ chmod g+s $(CGIDIR)/$$f; \
+ done
+ for f in $(MAIL_PROGS); \
+ do \
+ $(INSTALL_PROGRAM) $$f $(MAILDIR); \
+ chmod g+s $(MAILDIR)/$$f; \
+ done
+# @for f in $(ALIAS_PROGS); \
+# do \
+# $(INSTALL_PROGRAM) $$f $(bindir) ; \
+# done
+
+clean:
+ -@rm *.o
+ -@rm -f $(PROGRAMS)
+
+distclean: clean
+ -@rm Makefile