# Makefile for NevProp version 1.03, last modified 13May93
# University of Nevada Center for Biomedical Modeling Research
# goodman@unr.edu

# warning: dependencies on #included .h files are not represented here when
#          they are utilities assumed to be stable.

# Examples:
#   make    (makes the program)
#   make clean   (removes program and object code)
#   make 'PARAMETERS=-DHAVE_RAND48=1' ( machines w/ rand48(); best if avail. )
#   make 'PARAMETERS=-DHAVE_RANDOM=1' ( machines w/ random() but not rand48() )
#         If neither of the above are defined, ran() will be used.
#   make 'PARAMETERS=-DCALC_CINDEX=0' (if c index is NOT desired)
#   make 'OPTIMIZE=-O3'   (for machines that recognize this optimization)
#   make 'OPTIMIZE=-g -DDEBUG'   (debug)

#defaults:
OPTIMIZE = -O
PARAMETERS = -DHAVE_RAND48=1

CFLAGS = $(OPTIMIZE) $(PARAMETERS)
LDLIBS = -lm

TARGET = np

OBJS =	$(TARGET).o \
		cind.o \
		rank.o \
		create.o

$(TARGET): $(OBJS)
		$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LDLIBS)

clean:
	/bin/rm -f $(OBJS) $(TARGET)

