diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-05-31 15:20:09 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-05-31 15:20:09 -0400 |
| commit | a4b2c07ff946363bc6465b301e94c0f3bd2f8de7 (patch) | |
| tree | 23621d5529c655a299ae9216ec4bafcc7688da81 /mk | |
| parent | bf0fad2913169318dc8e1d26c18ad056ee0cb363 (diff) | |
add __memperm() for checking current memory permissions
Diffstat (limited to 'mk')
| -rw-r--r-- | mk/__memperm.d | 9 | ||||
| -rw-r--r-- | mk/all.mk | 1 | ||||
| -rw-r--r-- | mk/deps.mk | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/mk/__memperm.d b/mk/__memperm.d new file mode 100644 index 00000000..83eff260 --- /dev/null +++ b/mk/__memperm.d @@ -0,0 +1,9 @@ +libc_C.0: libc.a(__memperm.o) +libc.a(__memperm.o): $(OBJDIR)/__memperm.o + @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$% + +$(OBJDIR)/__memperm.o: src/__memperm.c +$(OBJDIR)/__memperm.o: src/_memperm.h +$(OBJDIR)/__memperm.o: + @mkdir -p $(@D) + $(CC) -c -o $@ $(CFLAGS) src/__memperm.c @@ -1,4 +1,5 @@ include mk/__undefined.d +include mk/__memperm.d include mk/ctan.d include mk/catan.d include mk/ccos.d @@ -6,6 +6,10 @@ all: mk/__undefined.d mk/__undefined.d: src/__undefined.c sh mk/deps.sh src/__undefined.c +all: mk/__memperm.d +mk/__memperm.d: src/__memperm.c + sh mk/deps.sh src/__memperm.c + all: mk/ctan.d mk/ctan.d: src/complex/ctan.c sh mk/deps.sh src/complex/ctan.c |
