summaryrefslogtreecommitdiff
path: root/mk/gethostid.d
diff options
context:
space:
mode:
Diffstat (limited to 'mk/gethostid.d')
-rw-r--r--mk/gethostid.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/gethostid.d b/mk/gethostid.d
new file mode 100644
index 00000000..6ec8d4ba
--- /dev/null
+++ b/mk/gethostid.d
@@ -0,0 +1,9 @@
+libc_X.400: libc.a(gethostid.o)
+libc.a(gethostid.o): $(OBJDIR)/gethostid.o
+ @$(AR) $(ARFLAGS) $@ $(OBJDIR)/$%
+
+$(OBJDIR)/gethostid.o: src/unistd/gethostid.c
+$(OBJDIR)/gethostid.o:
+ @echo " [CC] $@"
+ @mkdir -p $(@D)
+ @$(CC) -c -o $@ $(CFLAGS) src/unistd/gethostid.c