diff options
author | Jakob Kaivo <jkk@ung.org> | 2020-08-14 21:36:35 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2020-08-14 21:36:35 -0400 |
commit | 51b9c55810ceb4a2895454bcc8b86d9e8959ffac (patch) | |
tree | 41071d48d40e8d505b08f7b0dd3c40a359d71a99 /mk | |
parent | 45277e43431b868192c5d313672a49ae54f67ed8 (diff) |
force building lib*.a, include sources without standards in base
Diffstat (limited to 'mk')
-rw-r--r-- | mk/deps.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -25,12 +25,19 @@ test -n "$P" && printf 'lib%s_P.%s: lib%s.a(%s.o)\n' $LIB $P $LIB $BASE X=$(grep -F 'XOPEN(' $SOURCE | sed -e 's/XOPEN(//;s/,.*//;s/)$//g') test -n "$X" && printf 'lib%s_X.%s: lib%s.a(%s.o)\n' $LIB $X $LIB $BASE +if [ -z "$C" ] && [ -z "$P" ] && [ -z "$X" ]; then + printf 'lib%s_C.0: lib%s.a(%s.o)\n' $LIB $LIB $BASE +fi + printf 'lib%s.a(%s.o): $(OBJDIR)/%s.o\n' $LIB $BASE $BASE +printf '\t@echo " [AR] $@($%%)"\n' +printf '\t@$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%%\n\n' + printf '$(OBJDIR)/%s.o: %s\n' $BASE $SOURCE # includes printf '$(OBJDIR)/%s.o:\n' $BASE -printf '\t@echo [CC] $@\n' +printf '\t@echo " [CC] $@"\n' printf '\t@mkdir -p $(@D)\n' printf '\t@$(CC) -c -o $@ $(CFLAGS) %s\n' $SOURCE |