summaryrefslogtreecommitdiff
path: root/otk_c/Makefile
diff options
context:
space:
mode:
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 $@ $^