]> git.pld-linux.org Git - packages/vstream-client.git/blob - vstream-client-shared.patch
- new
[packages/vstream-client.git] / vstream-client-shared.patch
1 --- vstream-client-1.2.1.1/Makefile.orig        2007-11-20 20:21:19.000000000 +0100
2 +++ vstream-client-1.2.1.1/Makefile     2013-02-17 20:17:13.737712374 +0100
3 @@ -1,31 +1,32 @@
4  include config.mak
5  
6 -LIBNAME = libvstream-client.a
7 +LIBNAME = libvstream-client.la
8  
9  SRCS = mfs.c object.c schema.c query.c util.c io.c partition.c crc.c vstream.c
10  
11  INSTALL = install
12  
13 -OBJS   = $(SRCS:.c=.o)
14 +OBJS   = $(SRCS:.c=.lo)
15  INCLUDE = -I..
16  LDFLAGS += $(SOCKLIB)
17  CFLAGS  += $(INCLUDE)
18 +LIBTOOL = libtool
19  
20  all:   $(LIBNAME) vstream-client
21  
22  install:       $(LIBNAME) vstream-client
23 -       $(INSTALL) -m 755 vstream-client $(BINDIR)/vstream-client
24 -       $(INSTALL) -m 644 $(LIBNAME) $(LIBDIR)/$(LIBNAME)
25 +       $(LIBTOOL) --mode=install $(INSTALL) -m 755 vstream-client $(BINDIR)/vstream-client
26 +       $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME) $(LIBDIR)/$(LIBNAME)
27         $(INSTALL) -m 644 vstream-client.h $(INCDIR)/vstream-client.h
28  
29 -.c.o:
30 -       $(CC) -c $(CFLAGS) -o $@ $<
31 +%.lo: %.c
32 +       $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CFLAGS) -o $@ $<
33  
34  $(LIBNAME):    $(OBJS)
35 -       $(AR) r $(LIBNAME) $(OBJS)
36 +       $(LIBTOOL) --mode=link --tag=CC $(CC) -o $(LIBNAME) $(OBJS) -rpath $(LIBDIR)
37  
38  vstream-client: $(LIBNAME) test-client.c
39 -       $(CC) $(CFLAGS) test-client.c $(LIBNAME) -o vstream-client $(LDFLAGS)
40 +       $(LIBTOOL) --mode=link --tag=CC $(CC) $(LDFLAGS) $(CFLAGS) test-client.c $(LIBNAME) -o vstream-client
41  
42  clean:
43         rm -f *.o *.a *~ vstream-client vstream-client.exe
This page took 0.023314 seconds and 3 git commands to generate.