From 2521cb36e643626d35dc0beb438de7d52dfe816e Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 10 Apr 2021 10:40:45 +0000 Subject: build system: posix make support: refactored project-agnostic inference rules. --- sofort/core/_infer/infer_posix.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sofort/core/_infer/infer_posix.mk (limited to 'sofort/core/_infer/infer_posix.mk') 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) -- cgit v1.2.3