#/* Makefile */

CFLAGS = -Ox -UNBC -DUSG
CC = cc
SHELL = /bin/sh
LIBS =
INC1 = macdefs.h manifest.h
INC2 = macdefs.h mac2defs.h manifest.h

bindir = /usr/local
libdir = /usr/local/lib

DIR = ../gccom

OBJS = code.o comm1.o cgram.o local.o optim.o pftn.o scan.o trees.o \
 xdefs.o allo.o local2.o match.o order.o reader.o table.o

# If you want to recompile everything, just do rm *.o.

all: gccom

compilations: ${OBJS}

gccom: $(OBJS)
	$(CC) $(CFLAGS) -o gccom $(OBJS) $(LIBS)
	/bin/chmod 755 gccom

# pass1 modules

code.o: code.c $(INC1) a.out.h

comm1.o: comm1.c common.h $(INC1) 

cgram.o: cgram.c $(INC1)

local.o: local.c $(INC1)

optim.o: optim.c $(INC1)

pftn.o: pftn.c $(INC1)

scan.o: scan.c $(INC1) a.out.h

trees.o: trees.c $(INC1)

xdefs.o: xdefs.c $(INC1)

# pass2 modules

allo.o: allo.c $(INC2)

local2.o: local2.c $(INC2)

match.o: match.c $(INC2)

order.o: order.c $(INC2)

reader.o: reader.c $(INC2)

table.o: table.c $(INC2)

clean:
	-rm -f *.o gccom
	-rm -f core

# Copy the files into directories where they will be run.
install: all
	install -s gccom $(bindir)

force:
