~ubuntu-branches/ubuntu/feisty/cproto/feisty

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Carsten Leonhardt
  • Date: 2000-09-02 21:14:55 UTC
  • Revision ID: james.westby@ubuntu.com-20000902211455-ixe8p17zhnuk6jft
Tags: upstream-4.6d
ImportĀ upstreamĀ versionĀ 4.6d

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: Makefile.in,v 4.7.1.4 2000/08/10 11:09:24 Carsten.Leonhardt Exp tom $
 
2
#
 
3
# UNIX template-makefile for C prototype generator
 
4
 
 
5
THIS = cproto
 
6
RELEASE = 4_6d
 
7
 
 
8
#### Start of system configuration section. ####
 
9
 
 
10
srcdir = @srcdir@
 
11
VPATH  = @srcdir@
 
12
 
 
13
CC              = @CC@
 
14
CPP             = @CPP@
 
15
LEX             = @LEX@
 
16
YACC            = @YACC@
 
17
LINT            = @LINT@
 
18
 
 
19
INSTALL         = @INSTALL@
 
20
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
21
INSTALL_DATA    = @INSTALL_DATA@
 
22
 
 
23
DEFINES         =
 
24
CPPFLAGS        = -I$(srcdir) $(DEFINES) -DHAVE_CONFIG_H @CPPFLAGS@
 
25
CFLAGS          = @CFLAGS@ $(CPPFLAGS)
 
26
LIBS            = @LIBS@ @LEXLIB@
 
27
 
 
28
prefix          = @prefix@
 
29
exec_prefix     = @exec_prefix@
 
30
 
 
31
bindir          = @bindir@
 
32
mandir          = @mandir@/man1
 
33
manext          = 1
 
34
 
 
35
#### End of system configuration section. ####
 
36
 
 
37
SHELL           = /bin/sh
 
38
@SET_MAKE@
 
39
 
 
40
LDFLAGS         = @LDFLAGS@
 
41
 
 
42
DOC_FILES = \
 
43
        README \
 
44
        CHANGES \
 
45
        $(THIS).1
 
46
 
 
47
MAK_FILES = \
 
48
        Makefile.in \
 
49
        configure.in \
 
50
        aclocal.m4 \
 
51
        config_h.in
 
52
 
 
53
H_FILES = \
 
54
        yyerror.c \
 
55
        system.h \
 
56
        $(THIS).h \
 
57
        semantic.h \
 
58
        symbol.h
 
59
 
 
60
C_FILES = \
 
61
        $(THIS).c \
 
62
        lintlibs.c \
 
63
        semantic.c \
 
64
        strkey.c \
 
65
        strstr.c \
 
66
        symbol.c
 
67
 
 
68
AUX_FILES = \
 
69
        mkdirs.sh \
 
70
        lex.l \
 
71
        grammar.y
 
72
 
 
73
JUNK =  \
 
74
        lex.yy.c \
 
75
        y.tab.c
 
76
 
 
77
EXTRA_OBJS = @EXTRA_OBJS@
 
78
OBJECTS = $(THIS).o lintlibs.o semantic.o strkey.o strstr.o symbol.o y.tab.o \
 
79
        $(EXTRA_OBJS)
 
80
SOURCES = $(DOC_FILES) $(MAK_FILES) $(H_FILES) $(C_FILES) $(AUX_FILES)
 
81
 
 
82
all : $(THIS) # $(THIS).man
 
83
 
 
84
install: all installdirs
 
85
        $(INSTALL_PROGRAM) $(THIS) $(bindir)/$(THIS)
 
86
        - $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(mandir)/$(THIS).$(manext)
 
87
 
 
88
installdirs:
 
89
        $(SHELL) ${srcdir}/mkdirs.sh $(bindir)
 
90
        - $(SHELL) ${srcdir}/mkdirs.sh $(mandir)
 
91
 
 
92
uninstall:
 
93
        - rm -f $(bindir)/$(THIS) $(mandir)/$(THIS).$(manext)
 
94
 
 
95
$(THIS) : $(OBJECTS)
 
96
        $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJECTS) $(LIBS)
 
97
 
 
98
y.tab.c : grammar.y
 
99
        $(YACC) $(srcdir)/grammar.y
 
100
 
 
101
lex.yy.c : lex.l
 
102
        $(LEX) $(srcdir)/lex.l
 
103
 
 
104
$(THIS).man : $(THIS).1
 
105
        - nroff -man $(srcdir)/$(THIS).1 >$@
 
106
 
 
107
mostlyclean :
 
108
        - rm -f core .nfs* *.o *.bak *.BAK *.log *.man *.out $(JUNK) default.h
 
109
        - rm -f Part?? part.*
 
110
 
 
111
clean : mostlyclean
 
112
        - rm -f $(THIS)
 
113
        cd testing; $(MAKE) $@
 
114
 
 
115
distclean : clean
 
116
        - rm -f stamp-h config.log config.cache config.status config.h Makefile
 
117
        - rm -f .version .fname
 
118
        cd testing; $(MAKE) $@
 
119
 
 
120
realclean: distclean
 
121
        - rm -f tags
 
122
        cd testing; $(MAKE) $@
 
123
 
 
124
check:  $(THIS)
 
125
        cd testing; $(MAKE) run_test
 
126
 
 
127
# configure might not change config.h
 
128
config.h : stamp-h
 
129
stamp-h : config.status
 
130
        ./config.status
 
131
 
 
132
Makefile: Makefile.in config.status
 
133
        ./config.status
 
134
 
 
135
config.status : configure
 
136
        ./config.status --recheck
 
137
 
 
138
configure : configure.in aclocal.m4
 
139
        autoconf
 
140
 
 
141
# I keep my sources in RCS, and assign a symbolic release to the current patch
 
142
# level.  The 'manifest' script knows how to build a list of files for a given
 
143
# revision.
 
144
MANIFEST:
 
145
        manifest -rv$(RELEASE) \
 
146
                $(THIS).man testing/case*.dcl testing/case*.bat
 
147
 
 
148
dist: MANIFEST
 
149
        - rm -f .fname .files
 
150
        echo '$(THIS)-$(RELEASE)' >.fname
 
151
        cat MANIFEST | grep ' ' | egrep -v ' subdirectory$$' | sed -e 's/\ .*//' | uniq >.files
 
152
        rm -rf `cat .fname`
 
153
        TOP=`cat .fname`; mkdir $$TOP `cat .files | grep / | sed -e 's@/.*@@' | sed -e s@\^@$$TOP/@ | uniq`
 
154
        for file in `cat .files`; do \
 
155
          ln $(srcdir)/$$file `cat .fname`/$$file \
 
156
            || { echo copying $$file instead; cp $$file `cat .fname`/$$file; }; \
 
157
        done
 
158
        tar -cf - `cat .fname` | gzip >`cat .fname`.tgz
 
159
        rm -rf `cat .fname` .fname .files
 
160
 
 
161
# Some of the output will be uuencoded because the test scripts include
 
162
# <CR><LF> terminated ".bat" files for MS-DOS.
 
163
dist-shar: MANIFEST
 
164
        - rm -f .fname .files
 
165
        echo '$(THIS)-$(RELEASE)' >.fname
 
166
        cat MANIFEST | grep ' ' | egrep -v ' subdirectory$$' | sed -e 's/\ .*//' | uniq >.files
 
167
        shar -M -n`cat .fname` -opart -l50 `cat .files`
 
168
        - rm -f .fname .files
 
169
 
 
170
# This uses Rick Salz's cshar to make a set of shar-files.
 
171
# (It'll clobber the version info in MANIFEST, and doesn't restore timestamps,
 
172
# but that's another bag of worms).
 
173
dist-cshar: MANIFEST
 
174
        makekit -m
 
175
 
 
176
default.h: $(C_FILES) lex.yy.c
 
177
        ./$(THIS) -e -v -m -M ARGS -d $(DEFINES) $(C_FILES) grammar.y >$@
 
178
 
 
179
lint: $(C_FILES) $(JUNK)
 
180
        $(LINT) $(CPPFLAGS) -lyacc $(C_FILES) y.tab.c >$@.out
 
181
 
 
182
llib: $(C_FILES) $(JUNK)
 
183
        ./$(THIS) -l $(CPPFLAGS) $(C_FILES) y.tab.c >$@.out
 
184
 
 
185
tags: $(H_FILES) $(C_FILES) $(AUX_FILES)
 
186
        ctags -t $(C_FILES) $(AUX_FILES) $(H_FILES)
 
187
 
 
188
depend:
 
189
        makedepend -- $(CPPFLAGS) -- $(C_FILES) y.tab.c
 
190
 
 
191
# DO NOT DELETE THIS LINE -- make depend depends on it.
 
192
 
 
193
cproto.o: cproto.h config.h system.h
 
194
lintlibs.o: cproto.h config.h system.h semantic.h symbol.h
 
195
semantic.o: cproto.h config.h system.h semantic.h
 
196
strkey.o: cproto.h config.h system.h 
 
197
strstr.o: cproto.h config.h system.h
 
198
symbol.o: cproto.h config.h system.h symbol.h
 
199
y.tab.o: cproto.h config.h system.h symbol.h semantic.h lex.yy.c yyerror.c