File: Makefile

package info (click to toggle)
libitl 0.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 724 kB
  • ctags: 235
  • sloc: ansic: 2,337; makefile: 237; perl: 36; sh: 17
file content (14 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#--
# $Id: Makefile 1925 2006-09-21 16:39:50Z thamer $
#--

CFLAGS+=$(shell perl -e 'use Config; print $$Config{ccflags};')

all: perl-demo

perl-demo: libitl.i
	swig -perl5 libitl.i
	$(CC) -c libitl_wrap.c $(CFLAGS) -I/usr/lib/perl/5.8.4/CORE/
	$(LD) -shared -G ../build/libitl.so libitl_wrap.o -o libitl_perl.so
clean:
	rm -f libitl_perl.pm libitl_wrap.c libitl_perl.so *.o