# Makefile for program dynloop

# USE /bin/make NOT GNU MAKE to avoid & errors

CC = gcc
LD = ld
CFLAGS = -g
C2DIR = /u/emery/code2-emery/code2/runtime/sparc
FTDIR = /u/emery/code2-emery/code2/runtime/sparc
INDENT = /p/bin/indent
INDENTFLG = -i2
INC = -I$(FTDIR)/include -I$(C2DIR)
OBJS = c2_main.o \
       \
      graph34.o

simple: $(OBJS)
	$(CC) $(OBJS) $(C2DIR)/c2libo.o\
            -lm -lthread -lc -o simple

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

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) graph201.c graph201.c.pretty $(INDENTFLG)
	$(INDENT) graph198.c graph198.c.pretty $(INDENTFLG)

depend:
	/lusr/X11R6/bin/makedepend -I/usr/include -I/p/include -I$../.. $(INC) $(SRCS)

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

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

# DO NOT DELETE THIS LINE -- depend uses it.
