From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- noao/digiphot/ptools/mkpkg | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 noao/digiphot/ptools/mkpkg (limited to 'noao/digiphot/ptools/mkpkg') 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 + ; -- cgit