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