Remove building with NOCRYPTO option
[minix3.git] / external / bsd / byacc / dist / makefile.in
blobaa26532c9f3db635ed3986fa55f3e469aac99f91
1 # Id: makefile.in,v 1.23 2014/04/09 12:15:52 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 AWK = @AWK@
28 CTAGS = @CTAGS@
29 ETAGS = @ETAGS@
30 LINT = @LINT@
31 LINTFLAGS = @LINT_OPTS@
33 prefix = @prefix@
34 exec_prefix = @exec_prefix@
36 datarootdir = @datarootdir@
37 bindir = $(DESTDIR)@bindir@
38 mandir = $(DESTDIR)@mandir@/man1
39 manext = 1
41 testdir = $(srcdir)/test
43 SKELETON = @SKELETON@
44 x = @EXEEXT@
45 o = .@OBJEXT@
47 #### End of system configuration section. ####
49 SHELL = /bin/sh
50 @SET_MAKE@
52 H_FILES = \
53 defs.h
55 C_FILES = \
56 closure.c \
57 error.c \
58 graph.c \
59 lalr.c \
60 lr0.c \
61 main.c \
62 mkpar.c \
63 mstring.c \
64 output.c \
65 reader.c \
66 $(SKELETON).c \
67 symtab.c \
68 verbose.c \
69 warshall.c
71 OBJS = \
72 closure$o \
73 error$o \
74 graph$o \
75 lalr$o \
76 lr0$o \
77 main$o \
78 mkpar$o \
79 mstring$o \
80 output$o \
81 reader$o \
82 $(SKELETON)$o \
83 symtab$o \
84 verbose$o \
85 warshall$o
87 YACCPAR = \
88 btyaccpar.c \
89 yaccpar.c
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)`
97 all : $(THIS)$x
99 install: all installdirs
100 $(INSTALL_PROGRAM) $(THIS)$x $(bindir)/$(actual_bin)
101 - $(INSTALL_DATA) $(srcdir)/$(THIS).1 $(mandir)/$(actual_man)
103 installdirs:
104 mkdir -p $(bindir)
105 - mkdir -p $(mandir)
107 uninstall:
108 - rm -f $(bindir)/$(actual_bin)
109 - rm -f $(mandir)/$(actual_man)
111 ################################################################################
112 .SUFFIXES : .c $o .i .skel
114 .c$o:
115 @RULE_CC@
116 @ECHO_CC@$(CC) -c $(CFLAGS) $<
118 .c.i :
119 @RULE_CC@
120 @ECHO_CC@$(CPP) -C $(CPPFLAGS) $*.c >$@
122 .skel.c :
123 $(AWK) -f $(srcdir)/skel2c $*.skel > $@
125 ################################################################################
127 $(THIS)$x : $(OBJS)
128 @ECHO_LD@$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
130 mostlyclean :
131 - rm -f core .nfs* *$o *.bak *.BAK *.out
133 clean :: mostlyclean
134 - rm -f $(THIS)$x
136 distclean :: clean
137 - rm -f config.log config.cache config.status config.h makefile
138 - rm -f $(testdir)/yacc/test-* $(testdir)/btyacc/test-*
140 realclean :: distclean
141 - rm -f tags TAGS
143 sources : $(YACCPAR)
145 maintainer-clean :: realclean
146 rm -f $(YACCPAR)
148 ################################################################################
149 check: $(THIS)$x
150 $(SHELL) $(testdir)/run_test.sh $(testdir)
152 check_make: $(THIS)$x
153 $(SHELL) $(testdir)/run_make.sh $(testdir)
155 check_lint:
156 $(SHELL) $(testdir)/run_lint.sh $(testdir)
157 ################################################################################
158 tags: $(H_FILES) $(C_FILES)
159 $(CTAGS) $(C_FILES) $(H_FILES)
161 lint: $(C_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)
167 depend:
168 makedepend -- $(CPPFLAGS) -- $(C_FILES)
170 $(OBJS) : defs.h makefile
172 main$o \
173 $(SKELETON)$o : VERSION
175 # DO NOT DELETE THIS LINE -- make depend depends on it.