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 16LIBRARY=libficl-sys.a 17MAJOR = 4 18MINOR = 1.0 19VERS=.$(MAJOR).$(MINOR) 20 21OBJECTS= dictionary.o system.o fileaccess.o float.o double.o prefix.o search.o \ 22 softcore.o stack.o tools.o vm.o primitives.o unix.o utility.o \ 23 hash.o callback.o word.o loader.o pager.o extras.o \ 24 loader_emu.o lz4.o 25 26include $(SRC)/lib/Makefile.lib 27 28LIBS= $(DYNLIB) $(LINTLIB) 29 30FICLDIR= $(SRC)/common/ficl 31C99MODE= $(C99_ENABLE) 32CPPFLAGS += -I.. -I$(FICLDIR) -D_LARGEFILE64_SOURCE=1 33 34LDLIBS += -luuid -lc -lm -lumem 35 36HEADERS= $(FICLDIR)/ficl.h $(FICLDIR)/ficltokens.h ../ficllocal.h \ 37 $(FICLDIR)/ficlplatform/unix.h 38 39pics/%.o: ../softcore/%.c $(HEADERS) 40 $(COMPILE.c) -o $@ $< 41 $(POST_PROCESS_O) 42 43pics/%.o: $(FICLDIR)/%.c $(HEADERS) 44 $(COMPILE.c) -o $@ $< 45 $(POST_PROCESS_O) 46 47pics/%.o: $(FICLDIR)/ficlplatform/%.c $(HEADERS) 48 $(COMPILE.c) -o $@ $< 49 $(POST_PROCESS_O) 50 51pics/%.o: $(FICLDIR)/emu/%.c $(HEADERS) 52 $(COMPILE.c) -o $@ $< 53 $(POST_PROCESS_O) 54 55pics/%.o: $(FICLDIR)/softcore/%.c $(HEADERS) 56 $(COMPILE.c) -o $@ $< 57 $(POST_PROCESS_O) 58 59$(LINTLIB) := SRCS= ../$(LINTSRC) 60 61all: $(LIBS) 62 63include $(SRC)/lib/Makefile.targ 64