blob: 4e15df9127d9aa102825d2d9d5f1f544de2042a6 (
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
37
38
39
40
41
|
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 -x -n VXI11::Client
cp vxi11.h libvxi11client.c libvxi11client.h vxi11_clnt.c vxi11_xdr.c VXI11-Client/
cp perlbits/README VXI11-Client/
cp perlbits/perlglue.c perlbits/perlglue.h VXI11-Client/
cp perlbits/Client.xs VXI11-Client/
cp perlbits/Makefile.PL VXI11-Client/
cp perlbits/VXI11-Client.t VXI11-Client/t/
cp perlbits/typemap VXI11-Client/
cp perlbits/Client.pm VXI11-Client/lib/VXI11/Client.pm
cd VXI11-Client/ && perl Makefile.PL
cd VXI11-Client/ && make
cd VXI11-Client/ && make test
|