# where the program should be installed
BIN	= /usr/local/bin
# where and under what name the man page should be installed
MAN	= /usr/local/man
EXT	= 1

# use the first three lines for gcc, use the fourth line for native cc
#CC	= gcc
#CFLAGS	= -O $(WFLAGS)
#WFLAGS	= -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings
CFLAGS	= -O2 -prototypes

trace:	trace.o
	$(CC) -o trace trace.o -lc_s

install: trace
	cp trace $(BIN)/trace
	cp trace.1 $(MAN)/man$(EXT)/trace.$(EXT)

clean:
	rm -f trace *.o core make.out
