UNIX	= UNIX
CFLAGS	= $(OPT) $(SF) -D$(UNIX) -D$(TARGET)
OBJS	= System.o General.o Memory.o DynArray.o Sets.o StringMem.o\
	  Idents.o Time.o Errors.o Positions.o Source.o

# targets

all:	tune $(OBJS)
	cp $(OBJS) ..

tune:
	$(CC) -o sizes sizes.c
	./sizes && echo "Porting complete"

clean:
	rm -f sizes mpC_Porting.h *.o core *% *~ *.*% *.*~

# dependencies

DynArray.o:	DynArray.h Memory.h
General.o:	General.h
Idents.o:	Idents.h StringMem.h DynArray.h
Memory.o:	Memory.h System.h General.h
Sets.o:		Sets.h DynArray.h General.h
StringMem.o:	StringMem.h DynArray.h
Time.o:		Time.h
Positions.o:	Positions.h
Errors.o:	Errors.h Positions.h
Source.o:	Source.h System.h

.SUFFIXES:	.c .o

.c.o:
	$(CC) $(CFLAGS) -c $*.c
