summaryrefslogtreecommitdiff
path: root/ptx/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'ptx/Makefile.mk')
-rw-r--r--ptx/Makefile.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/ptx/Makefile.mk b/ptx/Makefile.mk
new file mode 100644
index 0000000000000..dfef54161fe5e
--- /dev/null
+++ b/ptx/Makefile.mk
@@ -0,0 +1,23 @@
+OBJ = ptx.o
+
+FLAGS = -DLIBDIR='"$(LIBDIR)"' $(EUC)
+
+.c.o:
+ $(CC) $(CFLAGS) $(WARN) $(CPPFLAGS) $(FLAGS) -c $<
+
+all: ptx
+
+ptx: $(OBJ)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) $(LIBS) -o ptx
+
+install:
+ $(INSTALL) -c ptx $(ROOT)$(BINDIR)/ptx
+ $(STRIP) $(ROOT)$(BINDIR)/ptx
+ $(INSTALL) -c -m 644 ptx.1 $(ROOT)$(MANDIR)/man1/ptx.1
+ test -d $(ROOT)$(LIBDIR) || mkdir -p $(ROOT)$(LIBDIR)
+ $(INSTALL) -c -m 644 eign $(ROOT)$(LIBDIR)/eign
+
+clean:
+ rm -f $(OBJ) ptx core log *~
+
+mrproper: clean