summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-08 20:28:39 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-08 20:28:39 -0500
commit19d8e505da8e1bbcec9ab8a7235f56a53dbf1e20 (patch)
treea23b63749dd093ac4f27a12bc115a3975b92632f
parent6860efa9b0c85fe2c0785c3a79a6c3d2f54d7ded (diff)
add chaining dependencies for different standard versions
probably won't work the way I'm hoping, but w/e
-rw-r--r--Makefile23
1 files changed, 21 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2f9b1988..15f449da 100644
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,33 @@ all: .deps.mk include
$(MAKE) -f .deps.mk $@
deps .headers.mk .deps.mk:
- sh mkmf.sh $(STANDARD)
+ sh mkdeps.sh
headers include: .headers.mk
- $(MAKE) -f .headers.mk include
+ $(MAKE) -f .headers.mk headers
ctags:
ctags $$(find src -name \*.c)
+C_1: .deps.mk ; $(MAKE) -f .deps.mk $@
+C_199409: C_1 ; $(MAKE) -f .deps.mk $@
+C_199901: C_199409 ; $(MAKE) -f .deps.mk $@
+C_201112: C_199901 ; $(MAKE) -f .deps.mk $@
+C_201710: C_201112 ; $(MAKE) -f .deps.mk $@
+
+POSIX_1: C_1 ; $(MAKE) -f .deps.mk $@
+POSIX_2: POSIX_1 ; $(MAKE) -f .deps.mk $@
+POSIX_199309: POSIX_1 ; $(MAKE) -f .deps.mk $@
+POSIX_199506: POSIX_199309 ; $(MAKE) -f .deps.mk $@
+POSIX_200112: POSIX_199506 C_199901 ; $(MAKE) -f .deps.mk $@
+POSIX_200809: POSIX_200112 ; $(MAKE) -f .deps.mk $@
+
+XOPEN_4: POSIX_2 POSIX_1 ; $(MAKE) -f .deps.mk $@
+XOPEN_400: XOPEN_4 ; $(MAKE) -f .deps.mk $@
+XOPEN_500: XOPEN_400 POSIX_199506 ; $(MAKE) -f .deps.mk $@
+XOPEN_600: XOPEN_500 POSIX_200112 ; $(MAKE) -f .deps.mk $@
+XOPEN_700: XOPEN_600 POSIX_200809 ; $(MAKE) -f .deps.mk $@
+
clean:
rm -rf $(OBJDIR) *.a