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.. 22CPPFLAGS += -I../../sys 23CPPFLAGS += -I../../include 24CPPFLAGS += -I../../libsa 25CPPFLAGS += -I$(FICLDIR) -I../../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 ../ficllocal.h 34# 35 36# disable inner loop variable 'fw' check 37objs/vm.o := SMOFF += check_check_deref 38pics/vm.o := SMOFF += check_check_deref 39 40MAJOR = 4 41MINOR = 1.0 42 43machine: 44 $(RM) machine 45 $(SYMLINK) ../../sys/$(MACHINE)/include machine 46 47x86: 48 $(RM) x86 49 $(SYMLINK) ../../sys/x86/include x86 50 51objs/%.o pics/%.o: ../softcore/%.c $(HEADERS) 52 $(COMPILE.c) -o $@ $< 53 54objs/%.o pics/%.o: $(FICLDIR)/%.c $(HEADERS) 55 $(COMPILE.c) -o $@ $< 56 57objs/%.o pics/%.o: $(FICLDIR)/ficlplatform/%.c $(HEADERS) 58 $(COMPILE.c) -o $@ $< 59 60# 61# generic cleanup code 62# 63clobber clean: FRC 64 $(RM) $(CLEANFILES) machine x86 65