Skip to content

Commit

Permalink
contribution by Dirk Meyer
Browse files Browse the repository at this point in the history
  • Loading branch information
dm committed Aug 8, 1999
1 parent 5ac6b6c commit 3b5c346
Show file tree
Hide file tree
Showing 5 changed files with 1,327 additions and 0 deletions.
31 changes: 31 additions & 0 deletions rsmtp/COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 1992,1993,1994,1995,1996,1997,1998,1999
* by Dirk Meyer, All rights reserved.
* Im Grund 4, 34317 Habichtswald, Germany
* Email: [email protected]
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the author nor the names of any co-contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
*----------------------------------------------------------------------------*/
146 changes: 146 additions & 0 deletions rsmtp/GNUmakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
#
# Id$: GNUmakefile 1.71 26.07.1999
#
# (c) 1994-99, Dirk Meyer, Im Grund 4, 34317 Habichtswald
#
# makefile for dinoex

# FREEBSD = YES
LINUX = YES

DESTDIR = /usr/local/libexec/unix-connect/
BINOWN = -o root -g wheel
BINMODE = -m 755

WARNALL = \
-W \
-Wimplicit \
-Wreturn-type \
-Wunused \
-Wswitch \
-Wcomment \
-Wtrigraphs \
-Wformat \
-Wchar-subscripts \
-Wuninitialized \
-Wparentheses

WARNGCC24x = \
-pedantic \
-Wconversion \
-Wtraditional \
-Wenum-clash \

WARNGCC25x = \
-Wconversion \
-Wenum-clash \

WARNGCC26x = \
-Wmissing-declarations \
-pedantic \
-Wtraditional \
-Wenum-clash \

WARNGCC27x = \
-Wmissing-declarations \
-pedantic

WARNEGCS = \
-Wimplicit-int \
-Wimplicit-function-delcaration \
-Wmissing-declarations \

WARNBASE = \
$(WARNALL) \
-Wshadow \
-Wid-clash-30 \
-Wpointer-arith \
-Wcast-qual \
-Wcast-align \
-Wwrite-strings \
-Waggregate-return \
-Wstrict-prototypes \
-Wmissing-prototypes \
-Wnested-externs \
-Woverloaded-virtual \
-Winline


WARNEXT = \
$(WARN) \
-Wredundant-decls \
-Wbad-function-cast \
-Wno-import \
-Wno-parentheses \
-Wtest

ifdef FREEBSD
CPPFLAGS= -DUNIX -DHAVE_SYSEXITS $(HFLAGS)
WARN = \
$(WARNBASE) \
-Wtraditional \
$(WARNGCC27x)
endif
ifdef LINUX
CPPFLAGS= -DUNIX -DHAVE_SYSEXITS $(HFLAGS)
WARN = \
$(WARNBASE) \
$(WARNEGCS)
endif

ifndef NO_DEBUG
CFLAGS = -O2 -g $(WARN)
LDFLAGS = -g
INSTALL = install -c
else
CFLAGS = -O2 $(WARN)
LDFLAGS = -s
INSTALL = install -cs
endif
CXX=gcc
CXXFLAGS= -g -Wall -Werror

TARMIN = \
rsmtp \
bsmtp


BINMIN = \
$(DESTDIR)/rsmtp \
$(DESTDIR)/bsmtp

# rules

all: $(TARMIN)
date

clean:
rm -rf *.o *.ln $(TARMIN)

clean.bin:
rm -rf $(TARMIN)

install: ${DESTDIR} \
$(TARMIN) \
$(BINMIN)

rsmtp: rsmtp.o
bsmtp: bsmtp.o

rsmtp.o: rsmtp.c version.h
bsmtp.o: bsmtp.c version.h

# install rules

$(DESTDIR):
mkdir -p ${DESTDIR}

$(DESTDIR)/rsmtp: rsmtp
$(INSTALL) $(BINMODE) $(BINOWN) $(<) $(@)
$(INSTALL) $(BINMODE) $(BINOWN) $(<) $(DESTDIR)/rgsmtp
$(INSTALL) $(BINMODE) $(BINOWN) $(<) $(DESTDIR)/rcsmtp

$(DESTDIR)/bsmtp: bsmtp
$(INSTALL) $(BINMODE) $(BINOWN) $(<) $(@)

# end of makefile
Loading

0 comments on commit 3b5c346

Please sign in to comment.