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