aboutsummaryrefslogtreecommitdiff
path: root/src/third_party/libdisasm/swig/Makefile
blob: 44ef486b6a43fe3129510f70585ce7cc6d95eb81 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# change these values if you need to
SWIG		=	swig	# apt-get install swig !
GCC		=	gcc

CC_FLAGS	=	-c -fPIC
LD_FLAGS	=	-shared -L../.. -ldisasm

BASE_NAME	=	x86disasm

export INTERFACE_FILE BASE_NAME SWIG GCC CC_FLAGS LD_FLAGS

#====================================================
# TARGETS

all: swig
dummy: swig swig-python swig-ruby swig-perl swig-tcl install uninstall clean

swig: swig-python swig-perl
# swig-rub swig-tcl

swig-python: 
	cd python && make -f Makefile-swig

swig-ruby:
	cd ruby && make -f Makefile-swig

swig-perl:
	cd perl && make -f Makefile-swig

swig-tcl:
	cd tcl && make -f Makefile-swig

# ==================================================================
install: install-python install-perl
# install-ruby install-tcl

install-python:
	cd python && sudo make -f Makefile-swig install

install-ruby:
	cd ruby && sudo make -f Makefile-swig install

install-perl:
	cd perl && sudo make -f Makefile-swig install

install-tcl:
	cd tcl && sudo make -f Makefile-swig install

# ==================================================================
uninstall: uninstall-python
#uninstall-ruby uninstall-perl uninstall-tcl

uninstall-python:
	cd python && sudo make -f Makefile-swig uninstall

uninstall-ruby:
	cd ruby && sudo make -f Makefile-swig uninstall

uninstall-perl:
	cd perl && sudo make -f Makefile-swig uninstall

uninstall-tcl:
	cd tcl && sudo make -f Makefile-swig uninstall

# ==================================================================
clean:
	cd python && make -f Makefile-swig clean
	cd ruby && make -f Makefile-swig clean
	cd perl && make -f Makefile-swig clean
	cd tcl && make -f Makefile-swig clean