Mirror of the BLOAT repository https://www.cs.purdue.edu/homes/hosking/bloat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
bloat/src/EDU/purdue/cs/bloat/benchmark/Makefile

129 lines
3.9 KiB

# All files in the distribution of BLOAT (Bytecode Level Optimization and
# Analysis tool for Java(tm)) are Copyright 1997-2001 by the Purdue
# Research Foundation of Purdue University. All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
CLASS = \
Benchmark.class\
Shade.class\
Stats.class\
BenchmarkSecurityManager.class\
Nonstop.class\
Times.class\
CounterDecorate.class
JNIH = EDU_purdue_cs_bloat_benchmark_Benchmark.h \
EDU_purdue_cs_bloat_benchmark_Shade.h \
EDU_purdue_cs_bloat_benchmark_Stats.h \
EDU_purdue_cs_bloat_benchmark_Times.h \
EDU_purdue_cs_bloat_benchmark_Nonstop.h
OBJ = benchmark.o shade.o stats.o nonstop.o times.o
LIB = libbenchmark_g.so libbenchmark.so libshade.so libstats.so libstats_g.so libnonstop.so libtimes.so libtimes_g.so
.SUFFIXES: .java .class
JAVA_HOME = /u/u83/pps/java
JAVAC = $(JAVA_HOME)/bin/javac
JAVAH = $(JAVA_HOME)/bin/javah
JFLAGS = -g
CLASSPATH = $(JAVA_HOME)/lib/classes.zip
CFLAGS = -K pic -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/solaris \
-I/u/u83/pps/perfmon/include
all: class $(LIB)
clean:
rm -f *.class *.o $(JNIH) $(OBJ) $(LIB)
class:
@files=`$(MAKE) -n _class | grep javac | cut -d' ' -f4`; \
cpath=$(CLASSPATH):`(cd ../../../../..; pwd)`; \
if [ "x$$files" != "x" ]; then \
echo $(JAVAC) $(JFLAGS) -classpath $$cpath $$files; \
$(JAVAC) $(JFLAGS) -classpath $$cpath $$files; \
fi
_class: $(CLASS)
.java.class:
cpath=$(CLASSPATH):`(cd ../../../../..; pwd)`; \
$(JAVAC) -classpath $$cpath $<
libbenchmark.so: benchmark.o
cc benchmark.o -o libbenchmark.so /u/u83/pps/perfmon/lib/libperfmon.a -G
libbenchmark_g.so: benchmark.o
cc benchmark.o -o libbenchmark_g.so /u/u83/pps/perfmon/lib/libperfmon.a -G
libshade.so: shade.o
cc shade.o -o libshade.so -G
libstats_g.so: stats.o
cc stats.o -o libstats_g.so -G
libstats.so: stats.o
cc stats.o -o libstats.so -G
libtimes.so: times.o
cc times.o -o libtimes.so -G
libtimes_g.so: times.o
cc times.o -o libtimes_g.so -G
libnonstop.so: nonstop.o
cc nonstop.o -o libnonstop.so -G
EDU_purdue_cs_bloat_benchmark_Benchmark.h: Benchmark.java
cpath=$(CLASSPATH):`(cd ../../../../..; pwd)`; \
$(JAVAH) -jni -classpath $$cpath \
EDU.purdue.cs.bloat.benchmark.Benchmark
EDU_purdue_cs_bloat_benchmark_Shade.h: Shade.java
cpath=$(CLASSPATH):`(cd ../../../../..; pwd)`; \
$(JAVAH) -jni -classpath $$cpath \
EDU.purdue.cs.bloat.benchmark.Shade
EDU_purdue_cs_bloat_benchmark_Stats.h: Stats.java
cpath=$(CLASSPATH):`(cd ../../../../..; pwd)`; \
$(JAVAH) -jni -classpath $$cpath \
EDU.purdue.cs.bloat.benchmark.Stats
EDU_purdue_cs_bloat_benchmark_Times.h: Times.java
cpath=$(CLASSPATH):`(cd ../../../../..; pwd)`; \
$(JAVAH) -jni -classpath $$cpath \
EDU.purdue.cs.bloat.benchmark.Times
EDU_purdue_cs_bloat_benchmark_Nonstop.h: Nonstop.java
cpath=$(CLASSPATH):`(cd ../../../../..; pwd)`; \
$(JAVAH) -jni -classpath $$cpath \
EDU.purdue.cs.bloat.benchmark.Nonstop
nonstop.o: nonstop.c EDU_purdue_cs_bloat_benchmark_Nonstop.h
benchmark.o: benchmark.c EDU_purdue_cs_bloat_benchmark_Benchmark.h
times.o: times.c EDU_purdue_cs_bloat_benchmark_Times.h
shade.o: shade.c EDU_purdue_cs_bloat_benchmark_Shade.h
stats.o: stats.c EDU_purdue_cs_bloat_benchmark_Stats.h
.c.o:
cc -c $(CFLAGS) $<