
INSTALL_DIR = $(HOME)/local/bin

LDFLAGS = -L/app/readline-4.2/lib -R/app/readline-4.2/lib \
	  -L/app/binutils-2.13.1/lib -R/app/binutils-2.13.1/lib \
	  -L/app/libxml2-2.4.28/lib -R/app/libxml2-2.4.28/lib \
	  -lreadline -lhistory -ltermcap -lbfd -liberty -lxml2

CFLAGS  =  -I/app/readline-4.2/include \
	   -I/app/binutils-2.13.1/include \
	   -I/app/libxml2-2.4.28/include/libxml2

all: x_debug

x_debug: x_debug.c
	gcc -g3 -gdwarf-2 -o x_debug $(CFLAGS) x_debug.c $(LDFLAGS)

install: x_debug
	cp x_debug $(INSTALL_DIR)

clean:
	-rm -f a.out x_debug *.o *~ \#*\#

