summaryrefslogtreecommitdiff
path: root/otk_c/Makefile
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-20 22:01:40 +0000
committerDana Jansens <danakj@orodu.net>2002-12-20 22:01:40 +0000
commitedc47eb5580babdca6547989c1cb5cdf317f4835 (patch)
tree152457329e6c7e5f6c9f7ab99ebc76a3213ba994 /otk_c/Makefile
parent68194ce957db36ead19a39fdc7636a220befafe9 (diff)
some experimentin with C and python api. part 1.
Diffstat (limited to 'otk_c/Makefile')
-rw-r--r--otk_c/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/otk_c/Makefile b/otk_c/Makefile
new file mode 100644
index 00000000..e4dfe122
--- /dev/null
+++ b/otk_c/Makefile
@@ -0,0 +1,25 @@
+prefix=/tmp/ob
+libdir=$(prefix)/lib
+
+targets = libotk.so libotk.a
+sources = display.c
+headers = display.h
+
+CFLAGS+=-I/usr/gwar/include/python2.2
+
+.PHONY: all install clean
+
+all: $(targets)
+
+install: $(targets)
+ install -d $(libdir)
+ install $^ $(libdir)
+
+clean:
+ $(RM) $(targets) *.o core
+
+libotk.so: $(sources:.c=.o)
+ $(CC) -shared -o $@ $^ $(LDFLAGS)
+
+libotk.a: $(sources:.c=.o)
+ $(AR) -cr $@ $^