aboutsummaryrefslogtreecommitdiff
path: root/src/wld/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/wld/common.mk')
-rw-r--r--src/wld/common.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wld/common.mk b/src/wld/common.mk
new file mode 100644
index 0000000..480ec90
--- /dev/null
+++ b/src/wld/common.mk
@@ -0,0 +1,11 @@
+# wld: common.mk
+
+.deps/$(dir): | .deps
+ @mkdir "$@"
+
+$(dir)/%.o: $(dir)/%.c | .deps/$(dir)
+ $(compile) $(WLD_PACKAGE_CFLAGS)
+
+$(dir)/%.lo: $(dir)/%.c | .deps/$(dir)
+ $(compile) $(WLD_PACKAGE_CFLAGS) -fPIC
+