Category : C Source Code
Archive   : PH_BENCH.ZIP
Filename : MAKEFILE

 
Output of file : MAKEFILE contained in archive : PH_BENCH.ZIP
#
# Makefile for the Plum-Hall benchmarks package
# by Eric S. Raymond ([email protected])
#
# Your system type for the benchmark list (do *not* string-quote it)
SYSTYPE = AT&T 6386/375

# Ditto, if your headers define CLOCKS_PER_SEC
CFLAGS = -DCLOCKS_PER_SEC=60

# Comment this out if you have ANSI clock(3)
CLOCK = clock.o

bench.out: nbench obench
nbench 1 "$(SYSTYPE) (no -O)" >bench.out
obench 1 "$(SYSTYPE) (-O)" >>bench.out

# optimizer off
nbench.o: benches.c
$(CC) $(CFLAGS) -c benches.c
mv benches.o nbench.o
nbench: nbench.o f3.o $(CLOCK)
cc -o nbench nbench.o f3.o $(CLOCK) -lm

# optimizer on
obench.o: benches.c
$(CC) -O $(CFLAGS) -c benches.c
mv benches.o obench.o
obench: obench.o f3.o $(CLOCK)
cc -o obench obench.o f3.o $(CLOCK) -lm

clean:
rm -f [no]bench *.o bench.shar

bench.shar:
shar READ.ME Makefile *.c *.out *.bat *.sh cr-lf n-n bench.tbl ARTICLE >bench.shar


  3 Responses to “Category : C Source Code
Archive   : PH_BENCH.ZIP
Filename : MAKEFILE

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/