##  Some versions of make need this, else they will call the user's shell.
SHELL		= /bin/sh

##  Directory where the system is.
DIAL_BUILD	= ../

##  Program flags.
#	Set this to -g or -O, as appropriate.
DEBUG_OR_OPT	= -O
#	Pre-processor definitions, for use below.
DEFS		= -I../h -DSTREAMS
#	C compiler flags.
CFLAGS		= $(DEFS) $(DEBUG_OR_OPT)
#	Linker flags.
LDFLAGS		= $(DEBUG_OR_OPT)
#	Lint flags.
LINTFLAGS	= $(DEFS)

TSRCS	= dptrace.c
TOBJS	= dptrace.o

all:		dptrace

clean:
	rm -f foo core tags lint a.out *.o dpd

install:	all
	cp dpd $(BIN_DIR)

lint:		dpd
	lint $(LINTFLAGS) -z $(DSRCS) $(DIPLINTLIB) >lint


##
dptrace:	$(TOBJS)
	cc -o $@ $(LDFLAGS) $(TOBJS)
