blob: 560fb7a201e0871b8dd6a7f392b13b47280e5fe0 (
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
36
|
CFLAGS = -Wall -std=gnu99
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/
cp perlbits/typemap VXI11-Client/
cd VXI11-Client/ && perl Makefile.PL
cd VXI11-Client/ && make
cd VXI11-Client/ && make test
|