Makefile revision afc2ba1deb75b323afde536f2dd18bcafdaa308d
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# This file and its contents are supplied under the terms of the
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# Common Development and Distribution License ("CDDL"), version 1.0.
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# You may only use this file in accordance with the terms of version
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# 1.0 of the CDDL.
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# A full copy of the text of the CDDL should have accompanied this
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# source. A copy of the CDDL is also available via the Internet at
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# http://www.illumos.org/license/CDDL.
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi# Copyright 2016 Toomas Soome <tsoome@me.com>
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi#
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchiinclude $(SRC)/tools/Makefile.tools
fe77cc0407fb667ddc04e1a8f2e203bb7b9c80e1Robert Mustacchi
install all: softcore.c
SOFTCORE= $(SRC)/common/ficl/softcore
PROG = makesoftcore
#
# not needed: file access
#
FR = softcore.fr ifbrack.fr prefix.fr ficl.fr jhlocal.fr marker.fr
FR += freebsd.fr ficllocal.fr oo.fr classes.fr string.fr
SOURCES= $(FR:%=$(SOFTCORE)/%)
OBJS= makesoftcore.o lz4.o
SRCS= makesoftcore.c lz4.c
LDLIBS= -lumem
CPPFLAGS += -I.. -I$(SRC)/common/ficl
softcore.c: $(PROG) $(SOURCES)
./$(PROG) $(SOURCES)
$(PROG): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
%.o: $(SOFTCORE)/%.c
$(COMPILE.c) $<
clobber clean:
$(RM) softcore.c $(OBJS) $(PROG)