# BuildSystemHeader added automatically
# $Header: [Makefile,v 1.1 91/07/02 19:27:04 kalmin Exp ]$
UTOPDIR = ../../..
CHECK_ENV= $$N_CHECKENV
CC   	= $$N_TOOL_COMPILER
IFLAGS	= -I${UTOPDIR}/$$N_INCLUDE -I${UTOPDIR}/$$N_TINCLUDE -I${UTOPDIR}/i860tools/include
DEBUG	=
MODE 	= -D$$N_MODE
CFLAGS	= $$N_TOOL_COMPILER_FLAGS ${MODE} ${DEBUG} ${IFLAGS} 
#
# we need libdev.a only for gmalloc()...
#
LIB  	= ${UTOPDIR}/lib/omax/libdev.a
BIN     = ${UTOPDIR}/$$N_BIN
INST	= ${UTOPDIR}/$$N_TINSTALL ${BIN}
EFILE   = mlink

CFILES = \
	main.c \
	ProcessCommandArgs.c \
	InitOList.c \
	Collision.c \
	PlaceOne.c \
	PlaceClassMember.c \
	PlaceInCache.c \
	PlaceFamilies.c \
	Insert.c \
	FeedALN.c \
	GenerateTmpFiles.c \
	OutputList.c \
	NameToOlist.c \
	PlaceRemainders.c \
	family.c \
	graceful.c \
	DumpFamily.c \
	DumpList.c

SRCS	= ${CFILES}

OBJS  = \
	main.o \
	ProcessCommandArgs.o \
	InitOList.o \
	Collision.o \
	PlaceOne.o \
	PlaceClassMember.o \
	PlaceInCache.o \
	PlaceFamilies.o \
	Insert.o \
	FeedALN.o \
	GenerateTmpFiles.o \
	OutputList.o \
	NameToOlist.o \
	PlaceRemainders.o \
	family.o \
	graceful.o \
	DumpFamily.o \
	DumpList.o

.c.o:
	${CC} -c ${CFLAGS} $*.c

all:: ${EFILE}

${EFILE}: ${OBJS} ${LIB}
	${CC} -o ${EFILE} ${OBJS} ${LIB}
	${INST} ${EFILE}

${LIB}:
	cd ${UTOPDIR}/src/dev ; make

install isntall: all

debug:
	make "DEBUG=-DDEBUG"

depend:
	makedepend ${SRCS} ${IFLAGS}

clean:
	\rm -f core *.o *.${SUFX} ${EFILE}

lint:
	lint ${CFLAGS} ${IFLAGS} ${SRCS} > linterr

ctags:
	ctags ${SRCS} ${INCLUDES}

# DO NOT DELETE THIS LINE -- make depend depends on it.

main.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
ProcessCommandArgs.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
InitOList.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
InitOList.o: ../../../i860tools/include/errno.h
InitOList.o: ../../../i860tools/include/filehdr.h
InitOList.o: ../../../i860tools/include/scnhdr.h
InitOList.o: ../../../i860tools/include/n10aouth.h
Collision.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
PlaceOne.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
PlaceFamilies.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
Insert.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
FeedALN.o: /usr/include/sys/wait.h /usr/include/sys/types.h
FeedALN.o: ../../../i860tools/include/errno.h magic.h /usr/include/stdio.h
FeedALN.o: magicstr.h magicglobals.h
GenerateTmpFiles.o: /usr/include/sys/wait.h /usr/include/sys/types.h
GenerateTmpFiles.o: ../../../i860tools/include/errno.h magic.h
GenerateTmpFiles.o: /usr/include/stdio.h magicstr.h magicglobals.h
OutputList.o: /usr/include/stdio.h magic.h magicstr.h magicglobals.h
NameToOlist.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
PlaceRemainders.o: magic.h /usr/include/stdio.h magicstr.h magicglobals.h
family.o: /usr/include/stdio.h /usr/include/values.h
family.o: ../../../i860tools/include/filehdr.h
family.o: ../../../i860tools/include/scnhdr.h
family.o: ../../../i860tools/include/syms.h
family.o: ../../../i860tools/include/storclass.h magicstr.h
graceful.o: /usr/include/stdio.h ../../../i860tools/include/errno.h
