File: libtool

package info (click to toggle)
acr 2.2.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 712 kB
  • sloc: sh: 4,738; makefile: 41
file content (45 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (5)
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
42
43
44
45
USING LIBTOOL WITH ACR
======================

- write this rule in your configure.acr:

PKGNAME libmoo
VERSION 1.0.2
USE_LIBTOOL


Now acr will find for libtool and export the following environ:
 LIBTOOL_CC
 LIBTOOL_SHARED
 LIBTOOL_INSTALL

Now you must edit the Makefile.acr and put something like that:

LIB_VERSION=@VERSION@
LIBTOOL_CC=@LIBTOOL_CC@
LIBTOOL_SHARED=@LIBTOOL_SHARED@
LIBTOOL_INSTALL=@LIBTOOL_INSTALL@

Now things will look like this:

LIB_VERSION=@VERSION@
LIBTOOL_CC=@LIBTOOL_CC@
LIBTOOL_SHARED=@LIBTOOL_SHARED@
LIBTOOL_INSTALL=@LIBTOOL_INSTALL@
LIBDIR=@LIBDIR@

LIBNAME=libtest

%.lo:%.c
        ${LIBTOOL_CC} $<

all: file1.lo file2.lo
        ${LIBTOOL_SHARED} ${LIBNAME}.la file1.lo file2.lo

install:
        mkdir -p ${LIBDIR}
        ${LIBTOOL_INSTALL} ${LIBNAME}.la ${LIBDIR}

clean:
        -rm -rf .libs
        -rm *.o *.lo *.la