File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mini_sendmail / Makefile
Revision 1.1.1.1.2.2: download - view: text, annotated - select for diffs - revision graph
Tue Oct 18 13:48:41 2016 UTC (7 years, 8 months ago) by misho
Branches: v1_3_6p0
CVS tags: v1_3_9p0
Diff to: branchpoint 1.1.1.1: preferred, colored
v1_3_9p0

# Makefile for mini_sendmail

# CONFIGURE: If you are using a SystemV-based operating system, such as
# Solaris, you will need to uncomment this definition.
#SYSV_LIBS =    -lnsl -lsocket

BINDIR =	/usr/local/sbin
MANDIR =	/usr/local/man
CC =		cc
CFLAGS =	-O -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long
LDFLAGS =	-s -static
LDLIBS =	$(SYSV_LIBS)

CC :=		$(DIET) $(CC)


all:		mini_sendmail

diet:
	make DIET=diet mini_sendmail


mini_sendmail:	mini_sendmail.o
	$(CC) $(LDFLAGS) mini_sendmail.o $(LDLIBS) -o mini_sendmail

mini_sendmail.o:	mini_sendmail.c version.h
	$(CC) $(CFLAGS) -c mini_sendmail.c


install:	all
	rm -f $(BINDIR)/mini_sendmail
	cp mini_sendmail $(BINDIR)
	rm -f $(MANDIR)/man8/mini_sendmail.8
	cp mini_sendmail.8 $(MANDIR)/man8

clean:
	rm -f mini_sendmail *.o core core.* *.core

tar:
	@name=`sed -n -e '/#define MINI_SENDMAIL_VERSION /!d' -e 's,.*mini_sendmail/,mini_sendmail-,' -e 's, .*,,p' version.h` ; \
	  rm -rf $$name ; \
	  mkdir $$name ; \
	  tar cf - `cat FILES` | ( cd $$name ; tar xfBp - ) ; \
	  chmod 644 $$name/Makefile ; \
	  tar cf $$name.tar $$name ; \
	  rm -rf $$name ; \
	  gzip $$name.tar

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>