summaryrefslogtreecommitdiffstats
path: root/clib
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 17:59:19 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 18:43:23 +1100
commit799ef76e460a71ab27280fc7cb7a9e259cef2b7b (patch)
tree80e68069b2091bb568b1748d7e7f8ec0919e5a13 /clib
parent58cc12860727eb2a3c6c8b535c269abee9b2c7fc (diff)
downloadffs-799ef76e460a71ab27280fc7cb7a9e259cef2b7b.tar.gz
ffs-799ef76e460a71ab27280fc7cb7a9e259cef2b7b.zip
Move to autotools
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'clib')
-rw-r--r--clib/Makefile34
-rw-r--r--clib/Rules.cunit.mk45
-rw-r--r--clib/Rules.mk62
-rw-r--r--clib/Rules.test.mk93
-rw-r--r--clib/x86/Makefile29
-rw-r--r--clib/x86/cunit/Makefile31
-rw-r--r--clib/x86/test/Makefile31
7 files changed, 0 insertions, 325 deletions
diff --git a/clib/Makefile b/clib/Makefile
deleted file mode 100644
index d4a990b..0000000
--- a/clib/Makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-# IBM_PROLOG_BEGIN_TAG
-# This is an automatically generated prolog.
-#
-# $Source: clib/Makefile $
-#
-# OpenPOWER FFS Project
-#
-# Contributors Listed Below - COPYRIGHT 2014,2015
-# [+] International Business Machines Corp.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-#
-# IBM_PROLOG_END_TAG
-SUBDIRS=x86
-
-.PHONY: subdirs $(SUBDIRS)
-
-subdirs: $(SUBDIRS)
-
-$(SUBDIRS)::
- $(MAKE) -C $@ $(MAKECMDGOALS)
-
-all clean install: $(SUBDIRS)
diff --git a/clib/Rules.cunit.mk b/clib/Rules.cunit.mk
deleted file mode 100644
index 9fe4338..0000000
--- a/clib/Rules.cunit.mk
+++ /dev/null
@@ -1,45 +0,0 @@
-# IBM_PROLOG_BEGIN_TAG
-# This is an automatically generated prolog.
-#
-# $Source: clib/Rules.cunit.mk $
-#
-# OpenPOWER FFS Project
-#
-# Contributors Listed Below - COPYRIGHT 2014,2015
-# [+] International Business Machines Corp.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-#
-# IBM_PROLOG_END_TAG
-CFLAGS += -std=gnu99 -D__USE_GNU -I$(DEPTH)/apps
-LDFLAGS = -rdynamic -L$(DEPTH)/apps/clib/$(ARCH_DEP_DIR)
-
-TARGETS=clib
-
-OBJS=slab.o splay.o map.o vector.o ecc.o tree.o clib.o
-
-vpath %.h ../../src
-vpath %.c ../../cunit
-
-all: $(TARGETS)
-
-clib: $(OBJS) $(DEPTH)/apps/clib/$(ARCH_DEP_DIR)/libclib.a
- $(CC) $(LDFLAGS) -o $@ $^ -lcunit -lrt
-
-clean:
- $(RM) $(OBJS) $(TARGETS)
-
-install:
- $(INSTALL) -d $(CLIB_INSTALL)
- $(INSTALL) $(TARGETS) $(CLIB_INSTALL)
diff --git a/clib/Rules.mk b/clib/Rules.mk
deleted file mode 100644
index be56885..0000000
--- a/clib/Rules.mk
+++ /dev/null
@@ -1,62 +0,0 @@
-# IBM_PROLOG_BEGIN_TAG
-# This is an automatically generated prolog.
-#
-# $Source: clib/Rules.mk $
-#
-# OpenPOWER FFS Project
-#
-# Contributors Listed Below - COPYRIGHT 2014,2015
-# [+] International Business Machines Corp.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-#
-# IBM_PROLOG_END_TAG
-CFLAGS += -D_GNU_SOURCE -std=gnu99 -fshort-enums -D_FILE_OFFSET_BITS=64
-CFLAGS += -iquote$(DEPTH) -fPIC
-
-LDFLAGS=-L.
-
-OBJS = err.o misc.o ecc.o \
- exception.o \
- list.o list_iter.o \
- tree.o tree_iter.o \
- value.o mq.o \
- trace_indent.o checksum.o
-
-
-TARGETS=libclib.so libclib.a
-
-vpath %.c ../src
-vpath %.h ..
-
-all: $(TARGETS)
-
-libclib.so: $(OBJS)
- $(CC) $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^ -lpthread \
- -lrt
-
-libclib.a: $(OBJS)
- $(AR) -r $@ $^
-
-
-clean distclean:
- $(RM) *.so *.o *.gch *.CKP *.lst $(TARGETS)
- $(RM) html latex
-
-install: $(TARGETS) ../*.h
- $(INSTALL) -d $(CLIB_INSTALL)/include/clib $(CLIB_INSTALL)/{bin,lib}
- $(INSTALL) ../*.h $(CLIB_INSTALL)/include/clib
- $(INSTALL) libclib.so libclib.a $(CLIB_INSTALL)/lib
- $(MAKE) -C test $@
- $(MAKE) -C cunit $@
diff --git a/clib/Rules.test.mk b/clib/Rules.test.mk
deleted file mode 100644
index bcb1fb1..0000000
--- a/clib/Rules.test.mk
+++ /dev/null
@@ -1,93 +0,0 @@
-# IBM_PROLOG_BEGIN_TAG
-# This is an automatically generated prolog.
-#
-# $Source: clib/Rules.test.mk $
-#
-# OpenPOWER FFS Project
-#
-# Contributors Listed Below - COPYRIGHT 2014,2015
-# [+] International Business Machines Corp.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-#
-# IBM_PROLOG_END_TAG
-CFLAGS += -std=gnu99 -D__USE_GNU -I$(DEPTH)/apps
-LDFLAGS = -rdynamic -L$(DEPTH)/apps/clib/$(ARCH_DEP_DIR)
-
-TARGETS=exception \
- slab \
- list \
- ecc \
- tree \
- splay \
- map \
- table \
- mq \
- vector \
- checksum \
- err
-
-vpath %.h ../../src
-vpath %.c ../../test
-
-all: $(TARGETS)
-
-exception: exception.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-slab: slab.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-list: list.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-tree: tree.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-splay: splay.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-map: map.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-mq: mq.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-table: table.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-watch: watch.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-dispatch: dispatch.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-vector: vector.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-checksum: checksum.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-err: err.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-ecc: ecc.o ../libclib.so
- $(CC) $(LDFLAGS) -o $@ $^
-
-clean:
- $(RM) $(TARGETS:=.o) $(TARGETS)
-
-install:
- $(INSTALL) -d $(CLIB_INSTALL)
- $(INSTALL) $(TARGETS) $(CLIB_INSTALL)
diff --git a/clib/x86/Makefile b/clib/x86/Makefile
deleted file mode 100644
index 30da3b1..0000000
--- a/clib/x86/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-# IBM_PROLOG_BEGIN_TAG
-# This is an automatically generated prolog.
-#
-# $Source: clib/x86/Makefile $
-#
-# OpenPOWER FFS Project
-#
-# Contributors Listed Below - COPYRIGHT 2014,2015
-# [+] International Business Machines Corp.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-#
-# IBM_PROLOG_END_TAG
-DEPTH = ..
-
-CLIB_INSTALL = $(INST_USR_X86)
-
-include ../Rules.mk
diff --git a/clib/x86/cunit/Makefile b/clib/x86/cunit/Makefile
deleted file mode 100644
index 99c4a30..0000000
--- a/clib/x86/cunit/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-# IBM_PROLOG_BEGIN_TAG
-# This is an automatically generated prolog.
-#
-# $Source: clib/x86/cunit/Makefile $
-#
-# OpenPOWER FFS Project
-#
-# Contributors Listed Below - COPYRIGHT 2014,2015
-# [+] International Business Machines Corp.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-#
-# IBM_PROLOG_END_TAG
-DEPTH = ../../../..
-include $(DEPTH)/integration/Rules.mk
-include $(DEPTH)/integration/Rules.x86.mk
-
-CLIB_INSTALL = $(INST_TESTS_X86)/clib
-
-include ../../Rules.cunit.mk
diff --git a/clib/x86/test/Makefile b/clib/x86/test/Makefile
deleted file mode 100644
index f2986b7..0000000
--- a/clib/x86/test/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-# IBM_PROLOG_BEGIN_TAG
-# This is an automatically generated prolog.
-#
-# $Source: clib/x86/test/Makefile $
-#
-# OpenPOWER FFS Project
-#
-# Contributors Listed Below - COPYRIGHT 2014,2015
-# [+] International Business Machines Corp.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# permissions and limitations under the License.
-#
-# IBM_PROLOG_END_TAG
-DEPTH = ../../../..
-include $(DEPTH)/integration/Rules.mk
-include $(DEPTH)/integration/Rules.x86.mk
-
-CLIB_INSTALL = $(INST_TESTS_X86)/clib
-
-include ../../Rules.test.mk
OpenPOWER on IntegriCloud