CFLAGS = -Wall all: client client: libvxi11client.o vxi11_clnt.o vxi11_xdr.o client.o $(CC) $(CFLAGS) -o $@ $^ client.o: client.c libvxi11client.h $(CC) $(CFLAGS) -c $< libvxi11client.o: libvxi11client.c libvxi11client.h $(CC) $(CFLAGS) -c $< vxi11_clnt.o: vxi11_clnt.c $(CC) $(CFLAGS) -c $< vxi11_xdr.o: vxi11_xdr.c $(CC) $(CFLAGS) -c $^ .PHONY: clean perl clean: -rm *.o client -rm -rf VXI11-Client perl: -rm -rf VXI11-Client h2xs -M vxi11 -x -n VXI11::Client libvxi11client.h