summaryrefslogtreecommitdiff
path: root/benchmarks/libmicro/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--benchmarks/libmicro/files/patch-Makefile11
-rw-r--r--benchmarks/libmicro/files/patch-Makefile.FreeBSD45
-rw-r--r--benchmarks/libmicro/files/patch-Makefile.com40
3 files changed, 96 insertions, 0 deletions
diff --git a/benchmarks/libmicro/files/patch-Makefile b/benchmarks/libmicro/files/patch-Makefile
new file mode 100644
index 000000000000..450e5a1e511a
--- /dev/null
+++ b/benchmarks/libmicro/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig Sat Aug 6 14:07:26 2005
++++ Makefile Sat Aug 6 14:07:43 2005
+@@ -67,7 +67,7 @@
+ wrapper \
+ README
+
+-default $(ALL) run cstyle lint tattle: $(BINS)
++all $(ALL) run cstyle lint tattle: $(BINS)
+ @chmod +x bench multiview
+ @mkdir -p bin-`uname -m`; cd bin-`uname -m`; MACH=`uname -m` $(MAKE) -f ../Makefile.`uname -s` $@
+
diff --git a/benchmarks/libmicro/files/patch-Makefile.FreeBSD b/benchmarks/libmicro/files/patch-Makefile.FreeBSD
new file mode 100644
index 000000000000..a0d1ce593fb6
--- /dev/null
+++ b/benchmarks/libmicro/files/patch-Makefile.FreeBSD
@@ -0,0 +1,45 @@
+--- /dev/null Sat Aug 6 14:00:00 2005
++++ Makefile.FreeBSD Sat Aug 6 14:00:04 2005
+@@ -0,0 +1,42 @@
++#
++# CDDL HEADER START
++#
++# The contents of this file are subject to the terms
++# of the Common Development and Distribution License
++# (the "License"). You may not use this file except
++# in compliance with the License.
++#
++# You can obtain a copy of the license at
++# src/OPENSOLARIS.LICENSE
++# or http://www.opensolaris.org/os/licensing.
++# See the License for the specific language governing
++# permissions and limitations under the License.
++#
++# When distributing Covered Code, include this CDDL
++# HEADER in each file and include the License file at
++# usr/src/OPENSOLARIS.LICENSE. If applicable,
++# add the following below this CDDL HEADER, with the
++# fields enclosed by brackets "[]" replaced with your
++# own identifying information: Portions Copyright [yyyy]
++# [name of copyright owner]
++#
++# CDDL HEADER END
++#
++
++#
++# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
++# Use is subject to license terms.
++#
++# ident "@(#)Makefile.FreeBSD 1.5 05/08/04 SMI"
++#
++
++#CFLAGS= -O -DUSE_SEMOP
++CPPFLAGS= -D_REENTRANT
++MATHLIB= -lm
++
++ELIDED_BENCHMARKS= \
++ cachetocache \
++ atomic
++
++
++include ../Makefile.com
diff --git a/benchmarks/libmicro/files/patch-Makefile.com b/benchmarks/libmicro/files/patch-Makefile.com
new file mode 100644
index 000000000000..7ba3944755e7
--- /dev/null
+++ b/benchmarks/libmicro/files/patch-Makefile.com
@@ -0,0 +1,40 @@
+--- Makefile.com.orig Sat Aug 6 14:02:15 2005
++++ Makefile.com Sat Aug 6 14:05:15 2005
+@@ -44,7 +44,7 @@
+ COMPILER_VERSION_CMD_gcc=gcc -dumpversion
+ COMPILER_VERSION_CMD=$(COMPILER_VERSION_CMD_$(CC))
+
+-default: $(ALL) tattle
++all: $(ALL) tattle
+
+ cstyle:
+ for file in $(ALL:%=../%.c) $(EXTRA_CFILES:%=../%) ; \
+@@ -56,10 +56,10 @@
+
+
+ $(EXTRA_CFILES:%.c=%.lint):
+- $(LINT) ../$(@:%.lint=%.c) -I. -mu -lc libmicro.ln -lm
++ $(LINT) ../$(@:%.lint=%.c) -I. -mu -lc libmicro.ln -lm $(PTHREAD_LIBS)
+
+ %.lint: ../%.c libmicro.ln
+- $(LINT) -mu $(CPPFLAGS) $< libmicro.ln -lpthread -lsocket -lnsl -lm
++ $(LINT) -mu $(CPPFLAGS) $< libmicro.ln -lm $(PTHREAD_LIBS)
+
+ %.o: ../%.c
+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
+@@ -109,13 +109,13 @@
+ echo "char * compiler_version = \""`$(COMPILER_VERSION_CMD)`"\";" > tattle.h
+ echo "char * CC = \""$(CC)"\";" >> tattle.h
+ echo "char * extra_compiler_flags = \""$(extra_CFLAGS)"\";" >> tattle.h
+- $(CC) -o tattle $(CFLAGS) -I. ../tattle.c libmicro.a -lrt -lm
++ $(CC) -o tattle $(CFLAGS) -I. ../tattle.c libmicro.a -lm $(PTHREAD_LIBS)
+
+ $(ELIDED_BENCHMARKS): ../elided.c
+ $(CC) -o $(@) ../elided.c
+
+ %: libmicro.a %.o
+- $(CC) -o $(@) $(@).o $($(@)_EXTRA_DEPS) $(CFLAGS) libmicro.a $($(@)_EXTRA_LIBS) $(EXTRA_LIBS) -lpthread -lm
++ $(CC) -o $(@) $(@).o $($(@)_EXTRA_DEPS) $(CFLAGS) libmicro.a $($(@)_EXTRA_LIBS) $(EXTRA_LIBS) -lm $(PTHREAD_LIBS)
+
+ exec: exec_bin
+