diff options
Diffstat (limited to 'libvxi11client/Makefile')
-rw-r--r-- | libvxi11client/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libvxi11client/Makefile b/libvxi11client/Makefile new file mode 100644 index 0000000..b313b63 --- /dev/null +++ b/libvxi11client/Makefile @@ -0,0 +1,37 @@ +CFLAGS = -Wall -std=gnu99 `pkg-config --cflags gthread-2.0` +LFLAGS = `pkg-config --libs gthread-2.0` + +all: client + +client: libvxi11client.o vxi11_clnt.o vxi11_xdr.o client.o + $(CC) -o $@ $^ $(LFLAGS) + +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 -A -M vxi11 -x -n VXI11::Client libvxi11client.h + cp vxi11.h libvxi11client.c libvxi11client.h vxi11_clnt.c vxi11_xdr.c VXI11-Client/ + cp perlbits/Makefile.PL VXI11-Client/ + cp perlbits/VXI11-Client.t VXI11-Client/t/ + cp perlbits/typemap VXI11-Client/ + cd VXI11-Client/ && perl Makefile.PL + cd VXI11-Client/ && make + cd VXI11-Client/ && make test + |