source: trunk/third/nmh/sbr/Makefile.in @ 12544

Revision 12544, 3.7 KB checked in by danw, 26 years ago (diff)
use CPPFLAGS
Line 
1#
2# Makefile for sbr subdirectory
3#
4# $Id: Makefile.in,v 1.2 1999-02-23 17:00:43 danw Exp $
5#
6
7SHELL = /bin/sh
8
9top_srcdir = @top_srcdir@
10srcdir     = @srcdir@
11VPATH      = @srcdir@
12
13CC       = @CC@
14CFLAGS   = @CFLAGS@
15DEFS     = @DEFS@
16INCLUDES = -I.. -I. -I$(top_srcdir)
17
18AWK    = @AWK@
19LORDER = @LORDER@
20TSORT  = @TSORT@
21RANLIB = @RANLIB@
22
23LIBOBJS = @LIBOBJS@
24
25COMPILE = $(CC) -c $(CPPFLAGS) $(DEFS) $(INCLUDES) $(CFLAGS)
26
27.SUFFIXES:
28.SUFFIXES: .c .o
29
30.c.o:
31        $(COMPILE) $<
32
33# this header file is parsed to generate signal messages (sigmsg.h)
34SIGNAL_H = @SIGNAL_H@
35
36# source for library functions
37SRCS =  add.c addrsbr.c ambigsw.c atooi.c brkstring.c check_charset.c \
38        closefds.c concat.c context_del.c context_find.c context_foil.c \
39        context_read.c context_replace.c context_save.c copy.c \
40        copyip.c cpydata.c cpydgst.c discard.c done.c error.c \
41        fdcompare.c folder_addmsg.c folder_delmsgs.c folder_free.c \
42        folder_pack.c folder_read.c folder_realloc.c gans.c \
43        getans.c getanswer.c getarguments.c getcpy.c getfolder.c fmt_addr.c \
44        fmt_compile.c fmt_new.c fmt_rfc2047.c fmt_scan.c lock_file.c \
45        m_atoi.c m_backup.c m_convert.c m_draft.c m_getfld.c m_gmprot.c \
46        m_maildir.c m_name.c m_scratch.c m_tmpfil.c makedir.c \
47        path.c peekc.c pidwait.c pidstatus.c print_help.c \
48        print_sw.c print_version.c push.c putenv.c pwd.c refile.c \
49        remdir.c r1bindex.c readconfig.c seq_add.c seq_bits.c seq_del.c \
50        seq_getnum.c seq_list.c seq_nameok.c seq_print.c seq_read.c \
51        seq_save.c seq_setcur.c seq_setprev.c seq_setunseen.c showfile.c \
52        signals.c smatch.c snprintb.c ssequal.c strcasecmp.c strindex.c \
53        trimcpy.c uprf.c vfgets.c fmt_def.c m_msgdef.c
54
55# source for compatibility functions
56COMPAT = snprintf.c strdup.c strerror.c ruserpass.c
57
58OBJS =  add.o addrsbr.o ambigsw.o atooi.o brkstring.o check_charset.o \
59        closefds.o concat.o context_del.o context_find.o context_foil.o \
60        context_read.o context_replace.o context_save.o copy.o \
61        copyip.o cpydata.o cpydgst.o discard.o done.o error.o \
62        fdcompare.o folder_addmsg.o folder_delmsgs.o folder_free.o \
63        folder_pack.o folder_read.o folder_realloc.o gans.o \
64        getans.o getanswer.o getarguments.o getcpy.o getfolder.o fmt_addr.o \
65        fmt_compile.o fmt_new.o fmt_rfc2047.o fmt_scan.o lock_file.o \
66        m_atoi.o m_backup.o m_convert.o m_draft.o m_getfld.o m_gmprot.o \
67        m_maildir.o m_name.o m_scratch.o m_tmpfil.o makedir.o \
68        path.o peekc.o pidwait.o pidstatus.o print_help.o \
69        print_sw.o print_version.o push.o putenv.o pwd.o refile.o \
70        remdir.o r1bindex.o readconfig.o seq_add.o seq_bits.o seq_del.o \
71        seq_getnum.o seq_list.o seq_nameok.o seq_print.o seq_read.o \
72        seq_save.o seq_setcur.o seq_setprev.o seq_setunseen.o showfile.o \
73        signals.o smatch.o snprintb.o ssequal.o strcasecmp.o strindex.o \
74        trimcpy.o uprf.o vfgets.o fmt_def.o m_msgdef.o \
75        $(LIBOBJS)
76
77# auxiliary files
78AUX = Makefile.in sigmsg.awk
79
80# all files in this directory included in the distribution
81DIST = $(SRCS) $(COMPAT) $(AUX)
82
83# ========= DEPENDENCIES FOR BUILDING ==========
84
85# default target
86all: libmh.a
87
88sigmsg.h: sigmsg.awk
89        $(AWK) -f $(srcdir)/sigmsg.awk $(SIGNAL_H) > $@
90
91pidstatus.o: sigmsg.h
92
93libmh.a: $(OBJS)
94        rm -f libmh.a
95        ar cr libmh.a `$(LORDER) $(OBJS) | $(TSORT)`
96        $(RANLIB) libmh.a
97
98install:
99
100uninstall:
101
102# ========== DEPENDENCIES FOR CLEANUP ==========
103
104mostlyclean:
105        rm -f *.o *~
106
107clean: mostlyclean
108        rm -f libmh.a sigmsg.h
109
110distclean: clean
111        rm -f Makefile
112
113realclean: distclean
114
115superclean: realclean
116
117# ========== DEPENDENCIES FOR MAINTENANCE ==========
118
119subdir = sbr
120
121Makefile: Makefile.in ../config.status
122        cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
123 
124distdir = ../`cat ../distname`/$(subdir)
125nmhdist: $(DIST)
126        @echo "Copying distribution files in $(subdir)"
127        @for file in $(DIST); do \
128          cp -p $(srcdir)/$$file $(distdir); \
129        done
130
Note: See TracBrowser for help on using the repository browser.