all: testx
testx: TestX.o
	$(CC) $< -L/usr/X11R6/lib -lX11 -o $@

TestX.o: TestX.c
	$(CC) -g -I/usr/X11R6/lib -c $< 

clean: 
	/bin/rm -f core *.o testx
