# Makefile for program call_integ
CC = cc
LD = ld
CFLAGS = -g
C2DIR = $(CODEDIR)/runtime/cray
INC = -I$(C2DIR)
INDENT = indent
INDENTFLG = -i2
OBJS = c2_main.o \
       \
      graph19.o graph149.o 

call_integ: $(OBJS)
	$(CC) $(OBJS) $(C2DIR)/c2libg.o\
            -lm -lpthread -lc -o call_integ

clean:
	\rm -f *.o *.pretty core call_integ

pretty:
	$(INDENT) c2_globtype.h c2_globtype.h.pretty $(INDENTFLG)
	$(INDENT) c2_main.h c2_main.h.pretty $(INDENTFLG)
	$(INDENT) c2_main.c c2_main.c.pretty $(INDENTFLG)
	$(INDENT) graph19.c graph19.c.pretty $(INDENTFLG)
	$(INDENT) graph149.c graph149.c.pretty $(INDENTFLG)

c2_main.o: c2_main.c
	$(CC) $(CFLAGS) $(INC) -c c2_main.c

graph19.o: graph19.c
	$(CC) $(CFLAGS) $(INC) -c graph19.c

graph149.o: graph149.c
	$(CC) $(CFLAGS) $(INC) -c graph149.c

