summaryrefslogtreecommitdiff
path: root/libvxi11client/Makefile
blob: 290103235e8984d5adf5b7d4dfc36ba475048437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 -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/ 
	cd VXI11-Client/ && perl Makefile.PL
	cd VXI11-Client/ && make
	cd VXI11-Client/ && make test