1
# $Id: Makefile.in,v 4.7.1.4 2000/08/10 11:09:24 Carsten.Leonhardt Exp tom $
3
# UNIX template-makefile for C prototype generator
8
#### Start of system configuration section. ####
20
INSTALL_PROGRAM = @INSTALL_PROGRAM@
21
INSTALL_DATA = @INSTALL_DATA@
24
CPPFLAGS = -I$(srcdir) $(DEFINES) -DHAVE_CONFIG_H @CPPFLAGS@
25
CFLAGS = @CFLAGS@ $(CPPFLAGS)
26
LIBS = @LIBS@ @LEXLIB@
29
exec_prefix = @exec_prefix@
32
mandir = @mandir@/man1
35
#### End of system configuration section. ####
77
EXTRA_OBJS = @EXTRA_OBJS@
78
OBJECTS = $(THIS).o lintlibs.o semantic.o strkey.o strstr.o symbol.o y.tab.o \
80
SOURCES = $(DOC_FILES) $(MAK_FILES) $(H_FILES) $(C_FILES) $(AUX_FILES)
82
all : $(THIS) # $(THIS).man
84
install: all installdirs
85
$(INSTALL_PROGRAM) $(THIS) $(bindir)/$(THIS)
86
- $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(mandir)/$(THIS).$(manext)
89
$(SHELL) ${srcdir}/mkdirs.sh $(bindir)
90
- $(SHELL) ${srcdir}/mkdirs.sh $(mandir)
93
- rm -f $(bindir)/$(THIS) $(mandir)/$(THIS).$(manext)
96
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJECTS) $(LIBS)
99
$(YACC) $(srcdir)/grammar.y
102
$(LEX) $(srcdir)/lex.l
104
$(THIS).man : $(THIS).1
105
- nroff -man $(srcdir)/$(THIS).1 >$@
108
- rm -f core .nfs* *.o *.bak *.BAK *.log *.man *.out $(JUNK) default.h
109
- rm -f Part?? part.*
113
cd testing; $(MAKE) $@
116
- rm -f stamp-h config.log config.cache config.status config.h Makefile
117
- rm -f .version .fname
118
cd testing; $(MAKE) $@
122
cd testing; $(MAKE) $@
125
cd testing; $(MAKE) run_test
127
# configure might not change config.h
129
stamp-h : config.status
132
Makefile: Makefile.in config.status
135
config.status : configure
136
./config.status --recheck
138
configure : configure.in aclocal.m4
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
145
manifest -rv$(RELEASE) \
146
$(THIS).man testing/case*.dcl testing/case*.bat
149
- rm -f .fname .files
150
echo '$(THIS)-$(RELEASE)' >.fname
151
cat MANIFEST | grep ' ' | egrep -v ' subdirectory$$' | sed -e 's/\ .*//' | uniq >.files
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; }; \
158
tar -cf - `cat .fname` | gzip >`cat .fname`.tgz
159
rm -rf `cat .fname` .fname .files
161
# Some of the output will be uuencoded because the test scripts include
162
# <CR><LF> terminated ".bat" files for MS-DOS.
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
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).
176
default.h: $(C_FILES) lex.yy.c
177
./$(THIS) -e -v -m -M ARGS -d $(DEFINES) $(C_FILES) grammar.y >$@
179
lint: $(C_FILES) $(JUNK)
180
$(LINT) $(CPPFLAGS) -lyacc $(C_FILES) y.tab.c >$@.out
182
llib: $(C_FILES) $(JUNK)
183
./$(THIS) -l $(CPPFLAGS) $(C_FILES) y.tab.c >$@.out
185
tags: $(H_FILES) $(C_FILES) $(AUX_FILES)
186
ctags -t $(C_FILES) $(AUX_FILES) $(H_FILES)
189
makedepend -- $(CPPFLAGS) -- $(C_FILES) y.tab.c
191
# DO NOT DELETE THIS LINE -- make depend depends on it.
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