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# Copyright (c) 2018, Joyent, Inc. 16 17LIBRARY=libficl-sys.a 18MAJOR = 4 19MINOR = 1.0 20VERS=.$(MAJOR).$(MINOR) 21 22OBJECTS= 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 gfx_fb.o pnglite.o lz4.o 26 27include $(SRC)/lib/Makefile.lib 28 29LIBS= $(DYNLIB) $(LINTLIB) 30 31FICLDIR= $(SRC)/common/ficl 32LZ4= $(SRC)/common/lz4 33CSTD= $(CSTD_GNU99) 34PNGLITE= $(SRC)/common/pnglite 35CPPFLAGS += -I.. -I$(FICLDIR) -I$(FICLDIR)/emu -D_LARGEFILE64_SOURCE=1 36CPPFLAGS += -I$(PNGLITE) -I$(LZ4) 37CFLAGS += $(C_BIGPICFLAGS) 38CFLAGS64 += $(C_BIGPICFLAGS64) 39 40# As variable "count" is marked volatile, gcc 4.4.4 will complain about 41# function argument. So we switch this warning off 42# for time being, till gcc 4.4.4 will be replaced. 43pics/vm.o := CERRWARN += -_gcc=-Wno-clobbered 44 45LDLIBS += -luuid -lz -lc -lm -lumem 46 47HEADERS= $(FICLDIR)/ficl.h $(FICLDIR)/ficltokens.h ../ficllocal.h \ 48 $(FICLDIR)/ficlplatform/unix.h $(PNGLITE)/pnglite.h 49 50pics/%.o: ../softcore/%.c $(HEADERS) 51 $(COMPILE.c) -o $@ $< 52 $(POST_PROCESS_O) 53 54pics/%.o: $(FICLDIR)/%.c $(HEADERS) 55 $(COMPILE.c) -o $@ $< 56 $(POST_PROCESS_O) 57 58pics/%.o: $(FICLDIR)/ficlplatform/%.c $(HEADERS) 59 $(COMPILE.c) -o $@ $< 60 $(POST_PROCESS_O) 61 62pics/%.o: $(FICLDIR)/emu/%.c $(HEADERS) 63 $(COMPILE.c) -o $@ $< 64 $(POST_PROCESS_O) 65 66pics/%.o: $(LZ4)/%.c $(HEADERS) 67 $(COMPILE.c) -o $@ $< 68 $(POST_PROCESS_O) 69 70pics/%.o: $(PNGLITE)/%.c $(HEADERS) 71 $(COMPILE.c) -o $@ $< 72 $(POST_PROCESS_O) 73 74$(LINTLIB) := SRCS= ../$(LINTSRC) 75 76all: $(LIBS) 77 78include $(SRC)/lib/Makefile.targ 79