diff options
| author | Toomas Soome <tsoome@me.com> | 2015-08-30 15:37:04 +0300 |
|---|---|---|
| committer | Robert Mustacchi <rm@joyent.com> | 2016-09-22 11:43:36 -0700 |
| commit | afc2ba1deb75b323afde536f2dd18bcafdaa308d (patch) | |
| tree | 874ba455ac75f5e365b20f10797e155d918c00fe /usr/src/cmd | |
| parent | b6bc2fd4673eae6c96e2aea9e16105dd32a66b7b (diff) | |
| download | illumos-joyent-afc2ba1deb75b323afde536f2dd18bcafdaa308d.tar.gz | |
6185 want ficl scripting engine in illumos (loader project)
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/cmd')
| -rw-r--r-- | usr/src/cmd/Makefile | 2 | ||||
| -rw-r--r-- | usr/src/cmd/ficl/Makefile | 45 | ||||
| -rw-r--r-- | usr/src/cmd/ficl/Makefile.com | 41 | ||||
| -rw-r--r-- | usr/src/cmd/ficl/amd64/Makefile | 19 | ||||
| -rw-r--r-- | usr/src/cmd/ficl/i386/Makefile | 18 | ||||
| -rw-r--r-- | usr/src/cmd/ficl/sparc/Makefile | 18 | ||||
| -rw-r--r-- | usr/src/cmd/ficl/sparcv9/Makefile | 19 |
7 files changed, 162 insertions, 0 deletions
diff --git a/usr/src/cmd/Makefile b/usr/src/cmd/Makefile index c9a38ebfe8..f26f4d684f 100644 --- a/usr/src/cmd/Makefile +++ b/usr/src/cmd/Makefile @@ -25,6 +25,7 @@ # Copyright (c) 2012 by Delphix. All rights reserved. # Copyright (c) 2013 DEY Storage Systems, Inc. All rights reserved. # Copyright 2014 Garrett D'Amore <garrett@damore.org> +# Copyright 2016 Toomas Soome <tsoome@me.com> include ../Makefile.master @@ -153,6 +154,7 @@ COMMON_SUBDIRS= \ fdetach \ fdformat \ fdisk \ + ficl \ filesync \ fgrep \ file \ diff --git a/usr/src/cmd/ficl/Makefile b/usr/src/cmd/ficl/Makefile new file mode 100644 index 0000000000..6e2c325821 --- /dev/null +++ b/usr/src/cmd/ficl/Makefile @@ -0,0 +1,45 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2016 Toomas Soome <tsoome@me.com> +# +# cmd/ficl/Makefile +# + +PROG= ficl-sys + +include ../Makefile.cmd + +SUBDIRS= $(MACH) +$(BUILD64)SUBDIRS += $(MACH64) + +all := TARGET = all +install := TARGET = install +clean := TARGET = clean +clobber := TARGET = clobber + +.KEEP_STATE: + +all: $(SUBDIRS) + +clean clobber lint: $(SUBDIRS) + +install: $(SUBDIRS) + -$(RM) $(ROOTPROG) + -$(LN) $(ISAEXEC) $(ROOTPROG) + +$(SUBDIRS): FRC + @cd $@; pwd; $(MAKE) $(TARGET) + +FRC: + +include ../Makefile.targ diff --git a/usr/src/cmd/ficl/Makefile.com b/usr/src/cmd/ficl/Makefile.com new file mode 100644 index 0000000000..6be92a0115 --- /dev/null +++ b/usr/src/cmd/ficl/Makefile.com @@ -0,0 +1,41 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2016 Toomas Soome <tsoome@me.com> +# + +PROG= ficl-sys +OBJS= main.o +SRCS= main.c + +include ../../Makefile.cmd +include ../../Makefile.ctf + +LDLIBS += -lficl-sys -ltecla -lumem +CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I$(SRC)/common/ficl + +.KEEP_STATE: + +all: $(PROG) + +$(PROG): $(OBJS) + $(LINK.c) $(OBJS) -o $@ $(LDLIBS) + $(POST_PROCESS) + +clean: + $(RM) $(OBJS) + +include ../../Makefile.targ + +%.o: $(SRC)/common/ficl/%.c + $(COMPILE.c) $(OUTPUT_OPTION) $< $(CTFCONVERT_HOOK) + $(POST_PROCESS_O) diff --git a/usr/src/cmd/ficl/amd64/Makefile b/usr/src/cmd/ficl/amd64/Makefile new file mode 100644 index 0000000000..5947231d79 --- /dev/null +++ b/usr/src/cmd/ficl/amd64/Makefile @@ -0,0 +1,19 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2016 Toomas Soome <tsoome@me.com> +# + +include ../Makefile.com +include ../../Makefile.cmd.64 + +install: all $(ROOTPROG64) diff --git a/usr/src/cmd/ficl/i386/Makefile b/usr/src/cmd/ficl/i386/Makefile new file mode 100644 index 0000000000..df3cfceab6 --- /dev/null +++ b/usr/src/cmd/ficl/i386/Makefile @@ -0,0 +1,18 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2016 Toomas Soome <tsoome@me.com> +# + +include ../Makefile.com + +install: all $(ROOTPROG32) diff --git a/usr/src/cmd/ficl/sparc/Makefile b/usr/src/cmd/ficl/sparc/Makefile new file mode 100644 index 0000000000..df3cfceab6 --- /dev/null +++ b/usr/src/cmd/ficl/sparc/Makefile @@ -0,0 +1,18 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2016 Toomas Soome <tsoome@me.com> +# + +include ../Makefile.com + +install: all $(ROOTPROG32) diff --git a/usr/src/cmd/ficl/sparcv9/Makefile b/usr/src/cmd/ficl/sparcv9/Makefile new file mode 100644 index 0000000000..5947231d79 --- /dev/null +++ b/usr/src/cmd/ficl/sparcv9/Makefile @@ -0,0 +1,19 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2016 Toomas Soome <tsoome@me.com> +# + +include ../Makefile.com +include ../../Makefile.cmd.64 + +install: all $(ROOTPROG64) |
