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