include ../conf/dp.conf
include ../Makefile.conf

##  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)
INST_FILES=${DPBIN_DIR}/dptrace

TSRCS	= dptrace.c paths.c defpaths.c confparse.c
TOBJS	= dptrace.o paths.o defpaths.o confparse.o

SRCS	= $(TSRCS)

#all:		dptrace
all:

clean:
	rm -f foo core tags lint a.out *.o dptrace Makefile.bak

#install:	${INST_FILES}
install:

${DPBIN_DIR}/dptrace:	dptrace
	install -s -o root -g staff -m 0755 dptrace ${DPBIN_DIR}

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


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

include ../Makefile.depend

# DO NOT DELETE THIS LINE -- make depend uses it

# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY
# see make depend above
