~ubuntu-branches/ubuntu/maverick/radare/maverick

« back to all changes in this revision

Viewing changes to .pc/python-versions.dpatch/src/plug/hack/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): SevenMachines
  • Date: 2010-09-07 15:44:27 UTC
  • mfrom: (1.1.3 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100907154427-37u92vu12tqabqqz
Tags: 1:1.5.2-3ubuntu1
* Merge from debian testing (LP: #621016)
* debian/control:
     + libvala-dev transition to libval-0.10-dev (LP: #618809) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include ../../../config.mk
 
2
 
 
3
# NOTE: umf..-lncurses is only needed on debian?
 
4
        #-${CC} perl.c ${CFLAGS}˘${HARED_CFLAGS}${PERL_CFLAGS} ${PERL_LDFLAGS} -o perl.${SHARED_EXT}
 
5
PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
 
6
PERL_LIBS=`perl -MExtUtils::Embed -e ldopts` -lncurses
 
7
PY_CFLAGS=`python2.5-config --cflags`
 
8
PY_LIBS=`python2.5-config --libs`
 
9
PY26_CFLAGS=`python2.6-config --cflags`
 
10
PY26_LIBS=`python2.6-config --libs`
 
11
LUA_CFLAGS=`pkg-config --cflags lua5.1`
 
12
LUA_LIBS=`pkg-config --libs lua5.1`
 
13
RUBY_CFLAGS=-I/usr/lib/ruby/1.8/i386-linux
 
14
RUBY_LIBS=-lruby18
 
15
SO=${SHARED_EXT}
 
16
CFLAGS+=${LUA_CFLAGS} ${PY_CFLAGS}
 
17
 
 
18
CFLAGS+=-I../.. -g
 
19
 
 
20
all: hello.${SO} lua.${SO} gtk-hello.${SO} scriptedit.${SO} python25.${SO} ruby.${SO} gtk-prefs.${SO} gtk-topbar.${SO} perl.${SO} python26.${SO}
 
21
 
 
22
hello.${SO}:
 
23
        ${CC} ${CFLAGS} ${SHARED_CFLAGS} hello.c -o hello.${SO}
 
24
 
 
25
ifeq ($(HAVE_GUI),0)
 
26
gtk-hello.${SO}:
 
27
gtk-actions.${SO}:
 
28
gtk-prefs.${SO}:
 
29
gtk-topbar.${SO}:
 
30
scriptedit.${SO}:
 
31
else
 
32
gtk-hello.${SO}:
 
33
        -${CC} `pkg-config gtk+-2.0 --cflags --libs` gtk-hello.c -I ../.. -fPIC -shared -g -o gtk-hello.${SO}
 
34
 
 
35
gtk-actions.${SO}:
 
36
        -${CC} `pkg-config gtk+-2.0 --cflags --libs` gtk-actions.c -I ../.. -fPIC -shared -g -o gtk-actions.${SO}
 
37
 
 
38
gtk-prefs.${SO}:
 
39
        -${CC} `pkg-config gtk+-2.0 --cflags --libs` gtk-prefs.c -I ../.. -fPIC -shared -g -o gtk-prefs.${SO}
 
40
 
 
41
gtk-topbar.${SO}:
 
42
        -${CC} `pkg-config gtk+-2.0 --cflags --libs` gtk-topbar.c -I ../.. -fPIC -shared -g -o gtk-topbar.${SO}
 
43
 
 
44
scriptedit.${SO}:
 
45
        -${CC} `pkg-config gtk+-2.0 --cflags --libs` scriptedit.c -I ../.. -fPIC -shared -g -o scriptedit.${SO}
 
46
endif
 
47
 
 
48
python25.${SO}:
 
49
ifeq ($(HAVE_LIB_PYTHON2_5),1)
 
50
        -${CC} python.c ${SHARED_CFLAGS} ${LDFLAGS} ${CFLAGS} ${PY_CFLAGS} ${PY_LIBS} -o python25.${SO}
 
51
endif
 
52
 
 
53
python26.${SO}:
 
54
ifeq ($(HAVE_LIB_PYTHON2_6),1)
 
55
        -${CC} python.c ${SHARED_CFLAGS} ${LDFLAGS} ${CFLAGS} ${PY26_CFLAGS} ${PY26_LIBS} -o python26.${SO}
 
56
endif
 
57
 
 
58
perl.${SO}:
 
59
        -${CC} perl.c ${SHARED_CFLAGS} ${CFLAGS} ${PERL_CFLAGS} ${PERL_LIBS} -o perl.${SO}
 
60
 
 
61
ruby.${SO}:
 
62
        -ruby mkruby.rb
 
63
        #-${CC} ruby.c ${SHARED_CFLAGS} ${CFLAGS} ${RUBY_CFLAGS} ${RUBY_LDFLAGS} -o ruby.${SO} 
 
64
 
 
65
# Try with -llua and -llua5.1 (stupid ubuntu)
 
66
lua.${SO}:
 
67
ifeq ($(HAVE_LANG_LUA),1)
 
68
ifeq ($(HAVE_LIB_PYTHON2_5),1)
 
69
ifneq ($(LUA_LIBS),)
 
70
        -${CC} lua.c ${SHARED_CFLAGS} ${CFLAGS} ${LUA_CFLAGS} ${LUA_LIBS} -o lua.so
 
71
endif
 
72
endif
 
73
endif
 
74
        @true
 
75
 
 
76
install:
 
77
        -[ -e lua.${SO} ] && ${INSTALL_LIB} lua.${SO} ${DESTDIR}/${LIBDIR}/radare
 
78
        -[ -e hello.${SO} ] && ${INSTALL_LIB} hello.${SO} ${DESTDIR}/${LIBDIR}/radare
 
79
        -[ -e gtk-hello.${SO} ] && ${INSTALL_LIB} gtk-hello.${SO} ${DESTDIR}/${LIBDIR}/radare
 
80
        -[ -e gtk-actions.${SO} ] && ${INSTALL_LIB} gtk-actions.${SO} ${DESTDIR}/${LIBDIR}/radare
 
81
        -[ -e gtk-prefs.${SO} ] && ${INSTALL_LIB} gtk-prefs.${SO} ${DESTDIR}/${LIBDIR}/radare
 
82
        -[ -e gtk-topbar.${SO} ] && ${INSTALL_LIB} gtk-topbar.${SO} ${DESTDIR}/${LIBDIR}/radare
 
83
        -[ -e scriptedit.${SO} ] && ${INSTALL_LIB} scriptedit.${SO} ${DESTDIR}/${LIBDIR}/radare
 
84
        -[ -e perl.${SO} ] && ${INSTALL_LIB} perl.${SO} ${DESTDIR}/${LIBDIR}/radare
 
85
        -[ -e ruby.${SO} ] && ${INSTALL_LIB} ruby.${SO} ${DESTDIR}/${LIBDIR}/radare
 
86
        -[ -e python25.${SO} ] && ${INSTALL_LIB} python25.${SO} ${DESTDIR}/${LIBDIR}/radare
 
87
        -[ -e python26.${SO} ] && ${INSTALL_LIB} python26.${SO} ${DESTDIR}/${LIBDIR}/radare
 
88
 
 
89
clean:
 
90
        -rm -f *.${SO} *.o