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