#-------------------------------------------------------------------------
# Z License
#
# This software is being provided to you, the LICENSEE, by the 
# Massachusetts Institute of Technology (M.I.T.) under the following 
# license.  By obtaining, using and/or copying this software, you agree 
# that you have read, understood, and will comply with these terms and 
# conditions:  
#
# Permission to use, copy, modify and distribute without fee for research 
# and educational purposes only, this software and its documentation 
# without fee or royalty is hereby granted, provided that you agree to 
# comply with the following copyright notice and statements, including the 
# disclaimer, and that the same appear on ALL copies of the software and 
# documentation, including modifications that you make for internal use or 
# for distribution:
#
# Copyright 1993 by the Massachusetts Institute of Technology.  All
# rights reserved.
#
# THIS SOFTWARE IS PROVIDED "AS IS", AND M.I.T. MAKES NO REPRESENTATIONS 
# OR WARRANTIES, EXPRESS OR IMPLIED.  By way of example, but not 
# limitation, M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES OF 
# MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF 
# THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD 
# PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.   
#
#-------------------------------------------------------------------------
#
# change the following two lines to point to your local SIS include and
# library directories.
SISINCLUDE = /i/marios/sis-1.1/sis/include
SISLIB = /i/marios/sis-1.1/sis/lib

# you can then compile SIS with TIM by typing "make sis" in this directory.

SRC = init_routines.c sis_init.c convert.c find_period.c edge_triggered.c          approx.c priority.c util.c symm_state_min.c edge_state_min.c                getopt.c sensitivity.c
OBJ = init_routines.o sis_init.o convert.o find_period.o                            edge_triggered.o approx.o priority.o util.o symm_state_min.o                edge_state_min.o getopt.o sensitivity.o

HDR = init_routines.h

TARGET = sis

LIBS = $(SISLIB)/libsis.a

INCLUDE =  -I$(SISINCLUDE)

$(TARGET): $(OBJ) $(LIBS)
	gcc -g -o $(TARGET) $(OBJ) $(LIBS) -lm

init_routines.o : init_routines.c $(HDR)
	gcc -c $(INCLUDE) init_routines.c

sis_init.o : sis_init.c $(HDR)
	gcc -c $(INCLUDE) sis_init.c

convert.o : convert.c $(HDR)
	gcc -c $(INCLUDE) convert.c

find_period.o : find_period.c $(HDR)
	gcc -c $(INCLUDE) find_period.c

edge_triggered.o : edge_triggered.c $(HDR)
	gcc -c $(INCLUDE) edge_triggered.c

approx.o : approx.c $(HDR) priority.h
	gcc -c $(INCLUDE) approx.c

priority.o : priority.c $(HDR) priority.h
	gcc -c $(INCLUDE) priority.c

util.o : util.c $(HDR) priority.h
	gcc -c $(INCLUDE) util.c

symm_state_min.o : symm_state_min.c $(HDR) priority.h
	gcc -c $(INCLUDE) symm_state_min.c

edge_state_min.o : edge_state_min.c $(HDR) priority.h
	gcc -c $(INCLUDE) edge_state_min.c

getopt.o : getopt.c $(HDR)
	gcc -c $(INCLUDE) getopt.c

sensitivity.o : sensitivity.c $(HDR) priority.h
	gcc -c $(INCLUDE) sensitivity.c
