File: TclMakefile

package info (click to toggle)
libuninum 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,204 kB
  • sloc: ansic: 9,968; sh: 8,721; tcl: 553; makefile: 27
file content (21 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
TCLDIR    = /usr/local/ActiveTcl
TCLLIBDIR = ${TCLDIR}/lib
TCLINCDIR = ${TCLDIR}/include

tcl_uninum.so:		uninum.o tcl_uninum_wrap.o
			gcc -shared uninum.o tcl_uninum_wrap.o -o tcl_uninum.so -lgmp -lm

tcl_uninum_wrap.o:	tcl_uninum_wrap.c
			gcc -fpic -c uninum.c tcl_uninum_wrap.c -I/usr/local/include  -I${TCLINCDIR}

tcl_uninum_wrap.c:	uninum.i
			swig -tcl -pkgversion 2.7 uninum.i
			mv uninum_wrap.c tcl_uninum_wrap.c

install:		tcl_uninum.so
			cp tcl_uninum.so ${TCLLIBDIR}/libuninum.so
			echo 'pkg_mkIndex ${TCLLIBDIR} libuninum.so' | tclsh

clean:
			rm tcl_uninum.so tcl_uninum_wrap.c  tcl_uninum_wrap.o