# Generated automatically from Makefile.in by configure.
#
# Makefile.in,v 2.6 1994/06/29 04:43:17 jrs Exp
#

srcdir = .
VPATH = $(srcdir)

CC = gcc -b sparc-sun-sunos4.1.4

INSTALL = /usr/local/gnu/bin/install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644

DEFS = -DHAVE_CONFIG_H
LDLIBS = 

CFLAGS = -g
LDFLAGS = -g
WARNFLAGS = -Wall

# OS is either `linux', `sunos4', or `svr4'
OS = sunos4
# ARCH is either `i386' or `sparc'
ARCH = sparc

# You may define any of MAX_PROCS, DEFAULT_STRLEN, DEFAULT_ACOLUMN,
# or DEFAULT_SORTBY here.
CPPFLAGS =

# Where include files are located, useful for cross-compiling.
includedir = /usr/include

# Where to install the program:
# I recommend `/usr' for Linux, `/usr/local' for the others.
prefix = /home/heas
exec_prefix = ${prefix}

bindir = $(exec_prefix)/bin
man1dir = $(prefix)/man/man1
man1ext = .1

SHELL = /bin/sh

INCLUDES = -I. -I$(OS) -I$(srcdir)/$(OS)
SUBDIRS = $(OS)
ALL_SUBDIRS = test linux sunos4 svr4
OBJ = strace.o version.o syscall.o util.o \
	desc.o file.o ipc.o io.o ioctl.o mem.o net.o process.o \
	resource.o signal.o sock.o system.o term.o time.o proc.o stream.o

all: strace

strace: $(OBJ)
	$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)

install: all
	$(INSTALL_PROGRAM) strace $(bindir)/strace
	$(INSTALL_DATA) $(srcdir)/strace.1 $(man1dir)/strace$(man1ext)

clean:
	for i in $(ALL_SUBDIRS); do (test -d $$i && cd ./$$i && $(MAKE) $@); done; exit 0
	rm -f *.o a.out core strace

distclean realclean:
	for i in $(ALL_SUBDIRS); do (test -d $$i && cd ./$$i && $(MAKE) $@); done; exit 0
	rm -f *.o a.out core strace
	rm -f machine
	rm -f Makefile config.h config.status

.c.o:
	$(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $<

desc.o : desc.c defs.h config.h
file.o : file.c defs.h config.h
io.o : io.c defs.h config.h
ioctl.o : ioctl.c defs.h config.h $(OS)/ioctlent.h
mem.o : mem.c defs.h config.h
net.o : net.c defs.h config.h
process.o : process.c defs.h config.h
resource.o : resource.c defs.h config.h
signal.o : signal.c defs.h config.h
socket.o : socket.c defs.h config.h
strace.o : strace.c defs.h config.h
syscall.o : syscall.c defs.h config.h
syscall.o : $(OS)/syscall.h $(OS)/dummy.h $(OS)/syscallent.h $(OS)/errnoent.h
system.o : system.c defs.h config.h
time.o : time.c defs.h config.h
util.o : util.c defs.h config.h

$(OS)/errnoent.h:
	cd ./$(OS) && $(MAKE) errnoent.h

$(OS)/ioctlent.h:
	cd ./$(OS) && $(MAKE) ioctlent.h

$(OS)/syscallent.h:
	cd ./$(OS) && $(MAKE) syscallent.h
