summaryrefslogtreecommitdiff
path: root/sofort/core/_infer/infer_modern.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-24 21:51:33 +0000
committermidipix <writeonce@midipix.org>2021-04-25 12:14:41 +0000
commit092ccd97aabe048cb5730b5799d712332c98a9da (patch)
tree010e0fd7e54ef74f40d450f224c5a08814c8e2bc /sofort/core/_infer/infer_modern.mk
parent39ac7633040a27354c7343e084f966b5e567be06 (diff)
downloadsbmake-092ccd97aabe048cb5730b5799d712332c98a9da.tar.bz2
sbmake-092ccd97aabe048cb5730b5799d712332c98a9da.tar.xz
build system: created skeleton.
Diffstat (limited to 'sofort/core/_infer/infer_modern.mk')
-rw-r--r--sofort/core/_infer/infer_modern.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/sofort/core/_infer/infer_modern.mk b/sofort/core/_infer/infer_modern.mk
new file mode 100644
index 0000000..aaf3361
--- /dev/null
+++ b/sofort/core/_infer/infer_modern.mk
@@ -0,0 +1,22 @@
+# infer_modern.mk: modern make target- and inference rules.
+# this file is covered by COPYING.SOFORT.
+
+src/%.ao: $(SOURCE_DIR)/src/%.c
+ $(CC) -c -o $@ $< $(CFLAGS_APP)
+
+src/%.lo: $(SOURCE_DIR)/src/%.c
+ $(CC) -c -o $@ $< $(CFLAGS_SHARED)
+
+src/%.o: $(SOURCE_DIR)/src/%.c
+ $(CC) -c -o $@ $< $(CFLAGS_STATIC)
+
+$(SHARED_LIB):
+ $(SHARED_LIB_CMD) $@ $^ $(SHARED_LIB_LDFLAGS) $(LDFLAGS_IMPLIB)
+
+lib/%$(OS_ARCHIVE_EXT):
+ mkdir -p lib
+ rm -f $@
+ $(AR) rcs $@ $^
+
+srcs.tag:
+ touch $@