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 2016 Toomas Soome <tsoome@me.com> 14# 15 16include $(SRC)/boot/Makefile.inc 17 18FICLDIR= $(SRC)/common/ficl 19PNGLITE= $(SRC)/common/pnglite 20 21CPPFLAGS += -I. -I$(BOOTSRC)/libficl 22CPPFLAGS += -I$(BOOTSRC)/sys 23CPPFLAGS += -I$(BOOTSRC)/include 24CPPFLAGS += -I$(BOOTSRC)/libsa 25CPPFLAGS += -I$(FICLDIR) -I$(BOOTSRC)/common -I$(PNGLITE) 26 27# For multiboot2.h, must be last, to avoid conflicts 28CPPFLAGS += -I$(SRC)/uts/common 29 30OBJECTS = dictionary.o system.o fileaccess.o float.o double.o prefix.o search.o 31OBJECTS += softcore.o stack.o tools.o vm.o primitives.o unix.o utility.o 32OBJECTS += hash.o callback.o word.o loader.o 33HEADERS = $(FICLDIR)/ficl.h $(FICLDIR)/ficlplatform/unix.h 34HEADERS += $(BOOTSRC)/libficl/ficllocal.h 35# 36 37# disable inner loop variable 'fw' check 38objs/vm.o := SMOFF += check_check_deref 39pics/vm.o := SMOFF += check_check_deref 40 41MAJOR = 4 42MINOR = 1.0 43 44machine: 45 $(RM) machine 46 $(SYMLINK) $(BOOTSRC)/sys/$(MACHINE)/include machine 47 48x86: 49 $(RM) x86 50 $(SYMLINK) $(BOOTSRC)/sys/x86/include x86 51 52objs/%.o pics/%.o: ../softcore/%.c $(HEADERS) 53 $(COMPILE.c) -o $@ $< 54 55objs/%.o pics/%.o: $(FICLDIR)/%.c $(HEADERS) 56 $(COMPILE.c) -o $@ $< 57 58objs/%.o pics/%.o: $(FICLDIR)/ficlplatform/%.c $(HEADERS) 59 $(COMPILE.c) -o $@ $< 60 61# 62# generic cleanup code 63# 64clobber clean: FRC 65 $(RM) $(CLEANFILES) machine x86 66