summaryrefslogtreecommitdiff
path: root/mk/__sys.d
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 09:03:56 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 09:03:56 -0400
commita0693e246509c592c8b28ecfad273d5c67655b6b (patch)
treef9425b0e78291dfa6f2e86ab32fc7232ee5aca24 /mk/__sys.d
parentcdcd1977d7b8d8f92a950777462e3d02af90a6bc (diff)
add dependencies for assembly stuff
Diffstat (limited to 'mk/__sys.d')
-rw-r--r--mk/__sys.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/__sys.d b/mk/__sys.d
new file mode 100644
index 00000000..803f38e9
--- /dev/null
+++ b/mk/__sys.d
@@ -0,0 +1,9 @@
+libc_C.0: libc.a(__sys.o)
+libc.a(__sys.o): $(OBJDIR)/__sys.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/__sys.o: src/__sys.$(ARCHITECTURE)-$(WORDSIZE).s
+$(OBJDIR)/__sys.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/__sys.$(ARCHITECTURE)-$(WORDSIZE).s