# Generated automatically from Makefile.in by configure.
#
# ltrace's Makefile.in
#

#OS	:=	$(shell uname -s)
OS	:=	linux-gnu

TOPDIR	=	$(shell pwd)

CC	=	gcc
CPPFLAGS =	-I$(TOPDIR) -I$(TOPDIR)/sysdeps/$(OS) -I- -DHAVE_CONFIG_H
CFLAGS	=	-Wall -g -O2
LDFLAGS	=
LIBS	=	

OBJ	=	ltrace.o options.o elf.o output.o read_config_file.o	\
		execute_program.o wait_for_something.o process_event.o	\
		display_args.o breakpoints.o proc.o demangle.o

all:		ltrace

ltrace:		sysdeps/sysdep.o $(OBJ)
		$(CC) $(LDFLAGS) $^ $(LIBS) -o $@

sysdeps/sysdep.o: dummy
		$(MAKE) -C sysdeps/$(OS)

clean:
		$(MAKE) -C sysdeps/$(OS) clean
		$(RM) ltrace $(OBJ)
		$(RM) *~ *.bak a.out core KK

distclean:	clean
		$(RM) config.cache config.status config.log config.h Makefile configure.scan

realclean:	distclean
		$(RM) configure config.h.in

dist:		clean
		( cd .. ; tar zcvf ltrace-`date +%y%m%d`.tgz ltrace )

install:	ltrace
		/usr/bin/install -c -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/doc/ltrace $(DESTDIR)/usr/share/man/man1
		/usr/bin/install -c -d $(DESTDIR)/etc
		/usr/bin/install -c -s ltrace $(DESTDIR)/usr/bin
		/usr/bin/install -c -m 644 etc/ltrace.conf $(DESTDIR)/etc
		/usr/bin/install -c -m 644 COPYING README TODO BUGS ChangeLog $(DESTDIR)/usr/doc/ltrace
		/usr/bin/install -c -m 644 ltrace.1 $(DESTDIR)/usr/share/man/man1

dummy:

.PHONY:		all clean distclean dist install dummy

.EXPORT_ALL_VARIABLES:
