#
# simex Makefile
#
#  David Kotz, 1996
#
#  simex is a stripped-down version of stats, in which I tossed all 
# of the GUI and graph-making stuff.  It's just enough to read events.sim
# and print out the metrics. 
#
# Derived from
#
#    Parallel Architecture Simulator
#    Eric A. Brewer  and  Chris N. Dellarocas
#    Laboratory for Computer Science
#    Massachusetts Institute of Technology
#
#    Module:  stats -- Makefile
#
#    Originally written:  4-26-90  (eab)
#    Last Modified:       9-24-91  (eab)
#

OBJS = simex.o fatal.o load.o hash.o support.o 
CSRC = simex.c fatal.c load.c hash.c support.c 
HSRC = simex.h hash.h event.h events.h

CC = gcc

CFLAGS = -Wall -DAlternativeSort=TRUE -g # -O3

####################################################################

simex: $(OBJS)
	$(CC) -g -o simex $(OBJS) -lm

depend: 
	makedepend $(CSRC)

TAGS: $(CSRC) $(HSRC)
	etags $(HSRC) $(CSRC)

####################################################################

clean:
	/bin/rm -f *~ 

spotless: clean
	/bin/rm -f *.o simex

reset: spotless

veryclean: spotless

####################################################################

# DO NOT DELETE THIS LINE -- make depend depends on it.

simex.o: /usr/include/stdio.h /usr/include/ansi_compat.h
simex.o: /usr/include/string.h /usr/include/memory.h simex.h
simex.o: /usr/include/assert.h
fatal.o: /usr/include/stdio.h /usr/include/ansi_compat.h
fatal.o: /usr/include/stdlib.h /usr/include/varargs.h
load.o: /usr/include/stdio.h /usr/include/ansi_compat.h /usr/include/stdlib.h
load.o: /usr/include/ctype.h /usr/include/malloc.h /usr/include/string.h
load.o: simex.h /usr/include/assert.h event.h events.h hash.h
hash.o: /usr/include/stdio.h /usr/include/ansi_compat.h /usr/include/malloc.h
hash.o: /usr/include/string.h /usr/include/assert.h simex.h hash.h
support.o: /usr/include/stdio.h /usr/include/ansi_compat.h
support.o: /usr/include/ctype.h /usr/include/string.h /usr/include/stdlib.h
support.o: /usr/include/malloc.h /usr/include/math.h simex.h
support.o: /usr/include/assert.h
