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
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.
13 # Copyright 2016 Toomas Soome <tsoome@me.com>
15 # Copyright (c) 2018, Joyent, Inc.
20 VERS=.$(MAJOR).$(MINOR)
22 OBJECTS= dictionary.o system.o fileaccess.o float.o double.o prefix.o search.o \
23 softcore.o stack.o tools.o vm.o primitives.o unix.o utility.o \
24 hash.o callback.o word.o loader.o pager.o extras.o \
25 loader_emu.o pnglite.o lz4.o
27 include $(SRC)/lib/Makefile.lib
31 FICLDIR= $(SRC)/common/ficl
33 PNGLITE= $(SRC)/common/pnglite
34 CPPFLAGS += -I.. -I$(FICLDIR)
35 CPPFLAGS += -I$(PNGLITE)
37 # As variable "count" is marked volatile, gcc 4.4.4 will complain about
38 # function argument. So we switch this warning off
39 # for time being, till gcc 4.4.4 will be replaced.
40 pics/vm.o := CERRWARN += -Wno-clobbered
42 LDLIBS += -luuid -lz -lc -lm -lumem
47 HEADERS= $(FICLDIR)/ficl.h $(FICLDIR)/ficltokens.h ../ficllocal.h \
48 $(FICLDIR)/ficlplatform/unix.h $(PNGLITE)/pnglite.h
50 pics/%.o: ../softcore/%.c $(HEADERS)
54 pics/%.o: $(FICLDIR)/%.c $(HEADERS)
58 pics/%.o: $(FICLDIR)/ficlplatform/%.c $(HEADERS)
62 pics/%.o: $(FICLDIR)/emu/%.c $(HEADERS)
66 pics/%.o: $(FICLDIR)/softcore/%.c $(HEADERS)
70 pics/%.o: $(PNGLITE)/%.c $(HEADERS)
76 include $(SRC)/lib/Makefile.targ