xref: /titanic_52/usr/src/cmd/ast/libast/Makefile.iffe (revision 906afcb89d0412cc073b95c2d701a804a8cdb62c)
1*906afcb8SAndy Fiddaman#
2*906afcb8SAndy Fiddaman# This file and its contents are supplied under the terms of the
3*906afcb8SAndy Fiddaman# Common Development and Distribution License ("CDDL"), version 1.0.
4*906afcb8SAndy Fiddaman# You may only use this file in accordance with the terms of version
5*906afcb8SAndy Fiddaman# 1.0 of the CDDL.
6*906afcb8SAndy Fiddaman#
7*906afcb8SAndy Fiddaman# A full copy of the text of the CDDL should have accompanied this
8*906afcb8SAndy Fiddaman# source.  A copy of the CDDL is also available via the Internet at
9*906afcb8SAndy Fiddaman# http://www.illumos.org/license/CDDL.
10*906afcb8SAndy Fiddaman#
11*906afcb8SAndy Fiddaman
12*906afcb8SAndy Fiddaman#
13*906afcb8SAndy Fiddaman# Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
14*906afcb8SAndy Fiddaman#
15*906afcb8SAndy Fiddaman
16*906afcb8SAndy Fiddamaninclude ../Makefile.com
17*906afcb8SAndy Fiddamaninclude ../../Makefile.iffe
18*906afcb8SAndy Fiddaman
19*906afcb8SAndy FiddamanGENCONF= conflim.h conftab.c conftab.h
20*906afcb8SAndy FiddamanLCCONF= lc.h lctab.c
21*906afcb8SAndy Fiddaman
22*906afcb8SAndy Fiddaman$(GENCONF): FRC
23*906afcb8SAndy Fiddaman	PATH=$(AST_TOOLS):$$PATH \
24*906afcb8SAndy Fiddaman	    $(SHELL) $(ASTSRC)/comp/conf.sh -v $(ASTSRC)/comp/conf.tab \
25*906afcb8SAndy Fiddaman	    $(IFFEC)
26*906afcb8SAndy Fiddaman	$(POST_PROCESS_AST) conflim.h conftab.c conftab.h
27*906afcb8SAndy Fiddaman
28*906afcb8SAndy Fiddaman$(LCCONF): $(ASTSRC)/port/lc.tab
29*906afcb8SAndy Fiddaman	$(AST_LCGEN) $(LCCONF) < $(ASTSRC)/port/lc.tab
30*906afcb8SAndy Fiddaman	$(POST_PROCESS_AST) $(LCCONF)
31*906afcb8SAndy Fiddaman
32*906afcb8SAndy FiddamanFEATURE/limits: $(GENCONF)
33*906afcb8SAndy FiddamanFEATURE/float: ast/ast_common.h
34*906afcb8SAndy Fiddaman
35*906afcb8SAndy Fiddamancleaniffe: FRC
36*906afcb8SAndy Fiddaman	$(RM) $(FEATURES:%=FEATURE/%) $(GENCONF) $(LCCONF)
37*906afcb8SAndy Fiddaman
38*906afcb8SAndy Fiddamangenerate: cleaniffe $(FEATURES:%=FEATURE/%) $(LCCONF)
39