1 # Id: makefile.in,v 1.23 2014/04/09 12:15:52 tom Exp
3 # UNIX template-makefile for Berkeley Yacc
7 #### Start of system configuration section. ####
15 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
16 INSTALL_DATA
= @INSTALL_DATA@
17 transform
= @program_transform_name@
20 EXTRA_CFLAGS
= @EXTRA_CFLAGS@
21 CPPFLAGS
= -I.
-I
$(srcdir) $(DEFINES
) -DHAVE_CONFIG_H
-DYYPATCH
=`cat $(srcdir)/VERSION` @CPPFLAGS@
22 CFLAGS
= @CFLAGS@
$(CPPFLAGS
) $(EXTRA_CFLAGS
)
31 LINTFLAGS
= @LINT_OPTS@
34 exec_prefix = @
exec_prefix@
36 datarootdir
= @datarootdir@
37 bindir = $(DESTDIR
)@
bindir@
38 mandir = $(DESTDIR
)@
mandir@
/man1
41 testdir
= $(srcdir)/test
47 #### End of system configuration section. ####
91 TRANSFORM_BIN
= sed
's/$x$$//' |sed
'$(transform)'|sed
's/$$/$x/'
92 TRANSFORM_MAN
= sed
's/$(manext)$$//'|sed
'$(transform)'|sed
's/$$/$(manext)/'
94 actual_bin
= `echo $(THIS)$x | $(TRANSFORM_BIN)`
95 actual_man
= `echo $(THIS).$(manext)| $(TRANSFORM_MAN)`
99 install: all installdirs
100 $(INSTALL_PROGRAM
) $(THIS
)$x $(bindir)/$(actual_bin
)
101 - $(INSTALL_DATA
) $(srcdir)/$(THIS
).1 $(mandir)/$(actual_man
)
108 - rm -f
$(bindir)/$(actual_bin
)
109 - rm -f
$(mandir)/$(actual_man
)
111 ################################################################################
112 .SUFFIXES
: .c
$o .i .skel
116 @ECHO_CC@
$(CC
) -c
$(CFLAGS
) $<
120 @ECHO_CC@
$(CPP
) -C
$(CPPFLAGS
) $*.c
>$@
123 $(AWK
) -f
$(srcdir)/skel2c
$*.skel
> $@
125 ################################################################################
128 @ECHO_LD@
$(CC
) $(LDFLAGS
) $(CFLAGS
) -o
$@
$(OBJS
) $(LIBS
)
131 - rm -f core .nfs
* *$o *.bak
*.BAK
*.out
137 - rm -f config.log config.cache config.status config.h makefile
138 - rm -f
$(testdir
)/yacc/test-
* $(testdir
)/btyacc
/test-
*
140 realclean :: distclean
145 maintainer-clean
:: realclean
148 ################################################################################
150 $(SHELL
) $(testdir
)/run_test.sh
$(testdir
)
152 check_make
: $(THIS
)$x
153 $(SHELL
) $(testdir
)/run_make.sh
$(testdir
)
156 $(SHELL
) $(testdir
)/run_lint.sh
$(testdir
)
157 ################################################################################
158 tags: $(H_FILES
) $(C_FILES
)
159 $(CTAGS
) $(C_FILES
) $(H_FILES
)
162 $(LINT
) $(LINTFLAGS
) $(CPPFLAGS
) $(C_FILES
)
164 @MAKE_UPPER_TAGS@TAGS
: $(H_FILES
) $(C_FILES
)
165 @MAKE_UPPER_TAGS@
$(ETAGS
) $(C_FILES
) $(H_FILES
)
168 makedepend
-- $(CPPFLAGS
) -- $(C_FILES
)
170 $(OBJS
) : defs.h makefile
173 $(SKELETON
)$o : VERSION
175 # DO NOT DELETE THIS LINE -- make depend depends on it.