aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/generic.new/z
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /unix/boot/generic.new/z
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/boot/generic.new/z')
-rw-r--r--unix/boot/generic.new/z16
1 files changed, 16 insertions, 0 deletions
diff --git a/unix/boot/generic.new/z b/unix/boot/generic.new/z
new file mode 100644
index 00000000..c850dbe8
--- /dev/null
+++ b/unix/boot/generic.new/z
@@ -0,0 +1,16 @@
+# Bootstrap the generic preprocessor. The -lln library is not used to avoid
+# the enternal dependency. The sed script is used to edit certain nonportable
+# constructs in the LEX code, and the filename lex.yy.c is changed to lexyy.c
+# for portability reasons.
+
+find tok.l -newer lexyy.c -exec rm lexyy.c \;
+if test -f lexyy.c; then\
+ $CC -c $HSI_CF lexyy.c;\
+else\
+ lex tok.l;\
+ sed -f lex.sed lex.yy.c > lexyy.c; rm lex.yy.c;\
+ $CC -c $HSI_CF lexyy.c;\
+fi
+
+$CC -c -g $HSI_CF generic.c chario.c yywrap.c
+$CC $HSI_LF generic.o lexyy.o chario.o yywrap.o $HSI_LIBS -o generic.e