Annotation of embedaddon/mini_sendmail/Makefile, revision 1.1.1.1.2.3

1.1       misho       1: # Makefile for mini_sendmail
                      2: 
                      3: # CONFIGURE: If you are using a SystemV-based operating system, such as
                      4: # Solaris, you will need to uncomment this definition.
                      5: #SYSV_LIBS =    -lnsl -lsocket
                      6: 
                      7: BINDIR =       /usr/local/sbin
                      8: MANDIR =       /usr/local/man
1.1.1.1.2.3! misho       9: #CC =          ${CC}
1.1.1.1.2.2  misho      10: 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
1.1       misho      11: LDFLAGS =      -s -static
                     12: LDLIBS =       $(SYSV_LIBS)
                     13: 
                     14: CC :=          $(DIET) $(CC)
                     15: 
                     16: 
                     17: all:           mini_sendmail
                     18: 
                     19: diet:
                     20:        make DIET=diet mini_sendmail
                     21: 
                     22: 
                     23: mini_sendmail: mini_sendmail.o
1.1.1.1.2.2  misho      24:        $(CC) $(LDFLAGS) mini_sendmail.o $(LDLIBS) -o mini_sendmail
1.1       misho      25: 
                     26: mini_sendmail.o:       mini_sendmail.c version.h
                     27:        $(CC) $(CFLAGS) -c mini_sendmail.c
                     28: 
                     29: 
                     30: install:       all
                     31:        rm -f $(BINDIR)/mini_sendmail
                     32:        cp mini_sendmail $(BINDIR)
                     33:        rm -f $(MANDIR)/man8/mini_sendmail.8
                     34:        cp mini_sendmail.8 $(MANDIR)/man8
                     35: 
                     36: clean:
                     37:        rm -f mini_sendmail *.o core core.* *.core
                     38: 
                     39: tar:
1.1.1.1.2.2  misho      40:        @name=`sed -n -e '/#define MINI_SENDMAIL_VERSION /!d' -e 's,.*mini_sendmail/,mini_sendmail-,' -e 's, .*,,p' version.h` ; \
1.1       misho      41:          rm -rf $$name ; \
                     42:          mkdir $$name ; \
                     43:          tar cf - `cat FILES` | ( cd $$name ; tar xfBp - ) ; \
                     44:          chmod 644 $$name/Makefile ; \
                     45:          tar cf $$name.tar $$name ; \
                     46:          rm -rf $$name ; \
                     47:          gzip $$name.tar

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