Makefiles need to specify C99 mode consistently
[unleashed.git] / usr / src / lib / libficl / Makefile.com
blob04f47497a56b07a34a268cdf94771ef76d5e487c
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.
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>
16 LIBRARY=libficl-sys.a
17 MAJOR = 4
18 MINOR = 1.0
19 VERS=.$(MAJOR).$(MINOR)
21 OBJECTS= 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
26 include $(SRC)/lib/Makefile.lib
28 LIBS=   $(DYNLIB)
30 FICLDIR=        $(SRC)/common/ficl
31 CSTD=   $(CSTD_GNU99)
32 CPPFLAGS +=     -I.. -I$(FICLDIR) -D_LARGEFILE64_SOURCE=1
34 # As variable "count" is marked volatile, gcc 4.4.4 will complain about
35 # function argument. So we switch this warning off
36 # for time being, till gcc 4.4.4 will be replaced.
37 pics/vm.o := CERRWARN += -Wno-clobbered
39 LDLIBS +=       -luuid -lc -lm -lumem
41 HEADERS= $(FICLDIR)/ficl.h $(FICLDIR)/ficltokens.h ../ficllocal.h \
42         $(FICLDIR)/ficlplatform/unix.h
44 pics/%.o:       ../softcore/%.c $(HEADERS)
45         $(COMPILE.c) -o $@ $<
46         $(POST_PROCESS_O)
48 pics/%.o:       $(FICLDIR)/%.c $(HEADERS)
49         $(COMPILE.c) -o $@ $<
50         $(POST_PROCESS_O)
52 pics/%.o:       $(FICLDIR)/ficlplatform/%.c $(HEADERS)
53         $(COMPILE.c) -o $@ $<
54         $(POST_PROCESS_O)
56 pics/%.o:       $(FICLDIR)/emu/%.c $(HEADERS)
57         $(COMPILE.c) -o $@ $<
58         $(POST_PROCESS_O)
60 pics/%.o:       $(FICLDIR)/softcore/%.c $(HEADERS)
61         $(COMPILE.c) -o $@ $<
62         $(POST_PROCESS_O)
64 all: $(LIBS)
66 include $(SRC)/lib/Makefile.targ