aboutsummaryrefslogtreecommitdiff
path: root/noao/digiphot/ptools/mkpkg
diff options
context:
space:
mode:
Diffstat (limited to 'noao/digiphot/ptools/mkpkg')
-rw-r--r--noao/digiphot/ptools/mkpkg38
1 files changed, 38 insertions, 0 deletions
diff --git a/noao/digiphot/ptools/mkpkg b/noao/digiphot/ptools/mkpkg
new file mode 100644
index 00000000..b8a75eaa
--- /dev/null
+++ b/noao/digiphot/ptools/mkpkg
@@ -0,0 +1,38 @@
+# PTOOLSX libraries
+
+$call relink
+$exit
+
+update:
+ $call relink
+ $call install
+ ;
+
+relink:
+ $omake x_ptools.x
+ !mkpkg -p noao trelink XF="$(XFLAGS)" LF="$(LFLAGS)"
+ ;
+
+linkonly:
+ !mkpkg -p noao trelink XF="$(XFLAGS)" LF="$(LFLAGS)"
+ $call install
+ ;
+
+install:
+ $move xx_ptools.e noaobin$x_ptools.e
+ ;
+
+trelink:
+ $set LIBS = "-lds -lncar -lgks -lxtools -ltbtables"
+ $set XFLAGS = "$(XFLAGS) $(XF)"
+ $set LFLAGS = "$(LFLAGS) $(LF)"
+ $update libpkg.a
+ $link x_ptools.o libpkg.a ../lib/libpttables.a $(LIBS) -o xx_ptools.e
+ ;
+
+libpkg.a:
+ @pconvert
+ @pexamine
+ @ptutils
+ @txtools
+ ;