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