aboutsummaryrefslogtreecommitdiffstats
path: root/troff/libhnj/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'troff/libhnj/Makefile.mk')
-rw-r--r--troff/libhnj/Makefile.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/troff/libhnj/Makefile.mk b/troff/libhnj/Makefile.mk
new file mode 100644
index 000000000000..30ede3c72596
--- /dev/null
+++ b/troff/libhnj/Makefile.mk
@@ -0,0 +1,22 @@
+FLAGS =
+
+.c.o:
+ $(CC) $(CFLAGS) $(WARN) $(CPPFLAGS) $(FLAGS) -c $<
+
+OBJ = hnjalloc.o hyphen.o
+
+all: libhnj.a test
+
+libhnj.a: $(OBJ)
+ $(AR) crs $@ $(OBJ)
+
+test: test.o libhnj.a
+ $(CC) $(CFLAGS) $(LDFLAGS) test.o -L. -lhnj -o test
+
+install:
+
+clean:
+ rm -f $(OBJ) test test.o core log *~
+
+mrproper: clean
+ rm -f libhnj.a