Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / byacc / dist / makefile.in
bloba580a2043228711c58ffa825751291cfa767daa2
1 # Id: makefile.in,v 1.11 2009/10/26 23:49:57 tom Exp
3 # UNIX template-makefile for Berkeley Yacc
5 THIS = yacc
7 #### Start of system configuration section. ####
9 srcdir = @srcdir@
10 VPATH = @srcdir@
12 CC = @CC@
14 INSTALL = @INSTALL@
15 INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 INSTALL_DATA = @INSTALL_DATA@
17 transform = @program_transform_name@
19 DEFINES =
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)
24 LDFLAGS = @LDFLAGS@
25 LIBS = @LIBS@
27 prefix = @prefix@
28 exec_prefix = @exec_prefix@
30 bindir = $(DESTDIR)@bindir@
31 mandir = $(DESTDIR)@mandir@/man1
32 manext = 1
34 x = @EXEEXT@
35 o = .@OBJEXT@
37 #### End of system configuration section. ####
39 SHELL = /bin/sh
40 @SET_MAKE@
42 H_FILES = \
43 defs.h
45 C_FILES = \
46 closure.c \
47 error.c \
48 graph.c \
49 lalr.c \
50 lr0.c \
51 main.c \
52 mkpar.c \
53 output.c \
54 reader.c \
55 skeleton.c \
56 symtab.c \
57 verbose.c \
58 warshall.c
60 OBJS = \
61 closure$o \
62 error$o \
63 graph$o \
64 lalr$o \
65 lr0$o \
66 main$o \
67 mkpar$o \
68 output$o \
69 reader$o \
70 skeleton$o \
71 symtab$o \
72 verbose$o \
73 warshall$o
75 TRANSFORM_BIN = sed 's/$x$$//' |sed '$(transform)'|sed 's/$$/$x/'
76 TRANSFORM_MAN = sed 's/$(manext)$$//'|sed '$(transform)'|sed 's/$$/$(manext)/'
78 actual_bin = `echo $(THIS)$x | $(TRANSFORM_BIN)`
79 actual_man = `echo $(THIS).$(manext)| $(TRANSFORM_MAN)`
81 all : $(THIS)$x
83 install: all installdirs
84 $(INSTALL_PROGRAM) $(THIS)$x $(bindir)/$(actual_bin)
85 - $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(mandir)/$(actual_man)
87 installdirs:
88 $(SHELL) ${srcdir}/mkdirs.sh $(bindir)
89 - $(SHELL) ${srcdir}/mkdirs.sh $(mandir)
91 uninstall:
92 - rm -f $(bindir)/$(actual_bin)
93 - rm -f $(mandir)/$(actual_man)
95 .c$o:
96 @RULE_CC@
97 @ECHO_CC@$(CC) -c $(CFLAGS) $<
99 $(THIS)$x : $(OBJS)
100 @ECHO_LD@$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
102 $(THIS).man : $(THIS).1
103 - nroff -man $(srcdir)/$(THIS).1 >$@
105 mostlyclean :
106 - rm -f core .nfs* *$o *.bak *.BAK *.man *.out
108 clean : mostlyclean
109 - rm -f $(THIS)$x
111 distclean : clean
112 - rm -f config.log config.cache config.status config.h makefile
113 - cd test && rm -f test-*
115 realclean: distclean
116 - rm -f tags
118 check: $(THIS)$x
119 cd test && $(SHELL) ./run_test.sh
121 tags: $(H_FILES) $(C_FILES)
122 ctags $(C_FILES) $(H_FILES)
124 depend:
125 makedepend -- $(CPPFLAGS) -- $(C_FILES)
127 $(OBJS) : defs.h
129 main$o \
130 skeleton$o : makefile VERSION
132 # DO NOT DELETE THIS LINE -- make depend depends on it.