chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
initial import and build-faff, wip
[chiark-tcl.git]
/
base
/
shlib.make
diff --git a/base/shlib.make
b/base/shlib.make
new file mode 100644
(file)
index 0000000..
50eeae0
--- /dev/null
+++ b/
base/shlib.make
@@ -0,0
+1,8
@@
+
+OBJS_CFILES += $(addsuffix .o, $(CFILES))
+OBJS += $(OBJS_CFILES)
+
+TARGETS += $(SHLIB).so
+
+$(SHLIB).so: $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)