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