blob: 2da0a084327f4491a70ac36b9348b509abb154e8 (
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
|
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 perlglue.h
cp vxi11.h libvxi11client.c libvxi11client.h vxi11_clnt.c vxi11_xdr.c VXI11-Client/
cp perlglue.c perlglue.h 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
|