diff options
author | midipix <writeonce@midipix.org> | 2021-04-24 21:51:33 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-25 12:14:41 +0000 |
commit | 092ccd97aabe048cb5730b5799d712332c98a9da (patch) | |
tree | 010e0fd7e54ef74f40d450f224c5a08814c8e2bc /sofort/core/_infer/infer_posix.mk | |
parent | 39ac7633040a27354c7343e084f966b5e567be06 (diff) | |
download | sbmake-092ccd97aabe048cb5730b5799d712332c98a9da.tar.bz2 sbmake-092ccd97aabe048cb5730b5799d712332c98a9da.tar.xz |
build system: created skeleton.
Diffstat (limited to 'sofort/core/_infer/infer_posix.mk')
-rw-r--r-- | sofort/core/_infer/infer_posix.mk | 27 |
1 files changed, 27 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..ae990e8 --- /dev/null +++ b/sofort/core/_infer/infer_posix.mk @@ -0,0 +1,27 @@ +# 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) + +srcs.tag: tree.tag + +srcs.tag: + $(PROJECT_DIR)/sofort/tools/srctree.sh \ + --srctree=$(SOURCE_DIR) -- \ + $(COMMON_SRCS) $(APP_SRCS) + touch $@ |