# Generated automatically from Makefile.in by configure.

TOPSRCDIR	= ..
SUBDIRS		= 
BUILD		= tracer.o
C_SRCS		= main.c


# Generated automatically from Makefile.rules.in by configure.
CC	= gcc
CFLAGS	= -Wall -fomit-frame-pointer -g -O2 -I$(TOPSRCDIR)
LIBS	= -lreadline -lncurses 
LD_R	= ld -r
RM	= rm -f
LDFLAGS = 


prefix          = /usr/local
exec_prefix     = ${prefix}
bindir          = ${exec_prefix}/bin
libdir          = ${exec_prefix}/lib
infodir         = ${prefix}/info
mandir          = ${prefix}/man
datadir		= ${prefix}/share


OBJS = $(C_SRCS:.c=.o)

all: subdirs-all $(BUILD)

.c.o:
	$(CC) $(CFLAGS) -c $<

subdirs-%: force
	set -e; s='$(SUBDIRS)'; for i in $$s; do cd $$i && $(MAKE) $* && cd ..; done;

install: subdirs-install
uninstall: subdirs-uninstall
clean: subdirs-clean clean-default
distclean: subdirs-distclean distclean-default

clean-default:
	$(RM) $(OBJS) $(BUILD) 

distclean-default:
	$(RM) $(OBJS) $(BUILD) Makefile
	

force: ;



generated.channels.h:
	./mktracech.sh ..

distclean:
	$(RM) generated.channels.h

$(BUILD): generated.channels.h $(OBJS)
	$(LD_R) $(OBJS) -o $@

# Deps
tracer.o: generated.channels.h main.c tracer.h 

