source: trunk/third/nmh/mts/smtp/Makefile.in @ 12544

Revision 12544, 1.5 KB checked in by danw, 26 years ago (diff)
use CPPFLAGS
Line 
1#
2# Makefile for mts/smtp subdirectory
3#
4# $Id: Makefile.in,v 1.2 1999-02-23 17:00:42 danw Exp $
5#
6
7SHELL = /bin/sh
8
9top_srcdir = @top_srcdir@
10srcdir     = @srcdir@
11VPATH      = @srcdir@
12
13prefix      = @prefix@
14exec_prefix = @exec_prefix@
15bindir      = @bindir@
16libdir      = @libdir@
17etcdir      = @sysconfdir@
18
19CC       = @CC@
20CFLAGS   = @CFLAGS@
21DEFS     = @DEFS@
22INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
23
24LORDER  = @LORDER@
25TSORT   = @TSORT@
26RANLIB  = @RANLIB@
27
28COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
29
30.SUFFIXES:
31.SUFFIXES: .c .o
32
33.c.o:
34        $(COMPILE) $<
35
36# header files
37HDRS = smtp.h
38
39# source
40SRCS = hosts.c smtp.c
41
42# object files in libsmtp.a
43OBJS = hosts.o smtp.o
44
45# auxiliary files
46AUX = Makefile.in
47
48# all files in this directory included in the distribution
49DIST = $(HDRS) $(SRCS) $(AUX)
50
51# ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
52
53all: libsmtp.a
54
55libsmtp.a: $(OBJS)
56        rm -f $@
57        ar cr $@ `$(LORDER) $(OBJS) | $(TSORT)`
58        $(RANLIB) $@
59
60install:
61
62uninstall:
63
64# ========== DEPENDENCIES FOR CLEANUP ==========
65
66mostlyclean:
67        rm -f *.o *~
68
69clean: mostlyclean
70        rm -f libsmtp.a
71
72distclean: clean
73        rm -f Makefile
74
75realclean: distclean
76
77superclean: realclean
78
79# ========== DEPENDENCIES FOR MAINTENANCE ==========
80
81subdir = mts/smtp
82
83Makefile: Makefile.in ../../config.status
84        cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
85 
86distdir = ../../`cat ../../distname`/$(subdir)
87nmhdist: $(DIST)
88        @echo "Copying distribution files in $(subdir)"
89        @for file in $(DIST); do \
90          cp -p $(srcdir)/$$file $(distdir); \
91        done
92
Note: See TracBrowser for help on using the repository browser.