diff options
author | midipix <writeonce@midipix.org> | 2021-04-10 10:40:45 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-10 20:54:44 +0000 |
commit | a9bba588ab9aa4e751ff84ebc50d93b0f3b10d33 (patch) | |
tree | 6a1d8c9a285aa466e87dcb37d646b1431224e08d /sofort/core/_infer/infer_posix.mk | |
parent | 03b910d788d0d07bbfb4c2081969af5397a662ee (diff) | |
download | ntapi-a9bba588ab9aa4e751ff84ebc50d93b0f3b10d33.tar.bz2 ntapi-a9bba588ab9aa4e751ff84ebc50d93b0f3b10d33.tar.xz |
build system: posix make support: refactored project-agnostic inference rules.
Diffstat (limited to 'sofort/core/_infer/infer_posix.mk')
-rw-r--r-- | sofort/core/_infer/infer_posix.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sofort/core/_infer/infer_posix.mk b/sofort/core/_infer/infer_posix.mk new file mode 100644 index 0000000..3938325 --- /dev/null +++ b/sofort/core/_infer/infer_posix.mk @@ -0,0 +1,19 @@ +# infer_posix.mk: posix make target- and inference rules. +# this file is covered by COPYING.SOFORT. + +.c.ao: + $(CC) -c -o $@ $< $(CFLAGS_APP) + +.c.lo: + $(CC) -c -o $@ $< $(CFLAGS_SHARED) + +.c.o: + $(CC) -c -o $@ $< $(CFLAGS_STATIC) + +$(SHARED_LIB): + $(SHARED_LIB_CMD) $@ $(SHARED_OBJS) $(SHARED_LIB_LDFLAGS) $(LDFLAGS_IMPLIB) + +$(STATIC_LIB): + mkdir -p lib + rm -f $@ + $(AR) rcs $@ $(STATIC_OBJS) |