Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/Clooper/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Util/Clooper/Makefile')
-rw-r--r--Util/Clooper/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Util/Clooper/Makefile b/Util/Clooper/Makefile
new file mode 100644
index 0000000..22e78c9
--- /dev/null
+++ b/Util/Clooper/Makefile
@@ -0,0 +1,25 @@
+CC=gcc
+
+CFLAGS+=-g -Wall -Werror --std=c99 -fPIC
+
+PYTHON=/usr/include/python2.4
+
+all : _ttest.so
+
+%.o: %.c %.h
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
+
+%.o: %.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
+
+clean :
+ rm -f *.o _ttest.so
+
+ttest_wrap.c: ttest.i
+ swig -python ttest.i
+
+ttest_wrap.o: ttest_wrap.c
+ gcc -fPIC -I$(PYTHON) -o $@ -c $<
+
+_ttest.so : ttest_wrap.o ttest.o
+ gcc -shared -o $@ $^