# $Id: Make.host,v 3.5 92/06/01 08:15:36 ksb Exp $
#
#	kayessbee  (Kevin S Braunsdorf, Purdue, ksb@cc.purdue.edu)
#
# $Compile: make calls; make graph

#BIN=	${DESTDIR}/usr/unsup/bin
BIN =	/usr/local/bin/calls
CC =	gcc

I=/usr/include
S=/usr/include/sys
P=

INCLUDE=
DEBUG=	-O
CDEFS= 
CFLAGS=	${DEBUG} ${CDEFS} ${INCLUDE}

HDR=	main.h calls.h scan.h
SRC=	main.c calls.c scan.c
GENc=	
GENh=	
GEN=	${GENc} ${GENh}
DEP=	${SRC} ${GENc}
OBJ=	main.o calls.o scan.o
MAN=	calls.1u
SOURCE=	Makefile calls.m ${HDR} ${SRC} ${MAN}



all: calls

calls:$P ${OBJ}
	${CC} -o $@ ${CFLAGS} ${OBJ}



graph: calls ${GEN} ${SRC} ${HDR}
	./calls -l4 -vx ${INCLUDE} ${CDEFS} ${DEP}

clean: FRC
	rm -f Makefile.bak calls ${GEN} prog.[ch] *.o a.out core errs tags

depend: ${GEN} ${SRC} ${HDR} FRC
	maketd ${CDEFS} ${INCLUDE} ${DEP}

distrib: FRC
	distrib -c ${BIN}/calls HOST

install: all FRC
	install -cs calls ${BIN}

lint: ${GEN} ${SRC} ${HDR} FRC
	lint -ph ${CDEFS} ${INCLUDE} ${DEP}

mkcat: ${MAN}
	mkcat ${MAN}

print: source FRC
	lpr -J"calls source" ${SOURCE}

source: ${SOURCE}

spotless: clean
	rcsclean ${SOURCE}

tags: ${SRC} ${HDR} ${GEN}
	ctags -t ${SRC} ${HDR} ${GEN}

${SOURCE}:
	co -q $@

FRC:

# DO NOT DELETE THIS LINE - maketd DEPENDS ON IT

main.o: calls.h main.c

calls.o: calls.c calls.h main.h scan.h

scan.o: calls.h scan.c scan.h

# *** Do not add anything here - It will go away. ***
