diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/glasgow/lit2x-0.16/mkworld/suffixes-GEN.jm |
Initial commit
Diffstat (limited to 'web/glasgow/lit2x-0.16/mkworld/suffixes-GEN.jm')
-rw-r--r-- | web/glasgow/lit2x-0.16/mkworld/suffixes-GEN.jm | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/web/glasgow/lit2x-0.16/mkworld/suffixes-GEN.jm b/web/glasgow/lit2x-0.16/mkworld/suffixes-GEN.jm new file mode 100644 index 0000000000..8a399a7ac5 --- /dev/null +++ b/web/glasgow/lit2x-0.16/mkworld/suffixes-GEN.jm @@ -0,0 +1,154 @@ +# line 31 "suffixes-GEN.ljm" +#ifndef LitSuffixRule +#define LitSuffixRule(beforesuff,aftersuff) @@\ +CAT2(beforesuff,aftersuff): @@\ + $(RM) $@ @@\ + $(LIT2PGM) $(LIT2PGMFLAGS) -o $@ $< @@\ + @chmod 444 $@ @@\ + @@\ +beforesuff.itxi: @@\ + $(RM) $@ @@\ + $(LIT2TEXI) -c $(LIT2TEXIFLAGS) -o $@ $< @@\ + @chmod 444 $@ @@\ + @@\ +beforesuff.itex: @@\ + $(RM) $@ @@\ + $(LIT2LATEX) -c $(LIT2LATEXFLAGS) -o $@ $< @@\ + @chmod 444 $@ +#endif /* LitSuffixRule */ +# line 59 "suffixes-GEN.ljm" +#ifndef NormalLibraryObjectRule +#define NormalLibraryObjectRule() @@\ +.c.o: @@\ + RemoveTarget ($@) @@\ + $(CC) -c $(CFLAGS) $*.c +#endif +# line 84 "suffixes-GEN.ljm" +#ifndef HaskellSuffixRules +#define HaskellSuffixRules() @@\ +SuffixRule_o_hi() @@\ +SuffixRule_lhs_o() @@\ +SuffixRule_hs_o() +#endif /* !HaskellSuffixRules */ +# line 97 "suffixes-GEN.ljm" +#ifndef SuffixRule_o_hi +#define SuffixRule_o_hi() @@\ +.o.hi: @@\ + @if [ ! -f $@ ] ; then \ @@\ + echo $(RM) $< ; \ @@\ + $(RM) $< ; \ @@\ + set +e ; \ @@\ + echo $(MAKE) HC="$(HC)" HCFLAGS="$(HCFLAGS)" $(MFLAGS) $< ; \ @@\ + $(MAKE) HC="$(HC)" HCFLAGS="$(HCFLAGS)" $(MFLAGS) $< ; \ @@\ + if [ $$? -ne 0 ] ; then \ @@\ + exit 1; \ @@\ + fi ; \ @@\ + fi +#endif /* !SuffixRule_o_hi */ +# line 114 "suffixes-GEN.ljm" +#ifndef SuffixRule_hs_o +#define SuffixRule_hs_o() @@\ +.hs.o: \ +_body_HaskellCompileWithSpecifiedFlags($<,$*,hs,-c $(HCFLAGS)) +#endif /* !SuffixRule_hs_o */ + +#ifndef SuffixRule_lhs_o +#define SuffixRule_lhs_o() @@\ +.lhs.o: \ +_body_HaskellCompileWithSpecifiedFlags($<,$*,lhs,-c $(HCFLAGS)) +#endif /* !SuffixRule_lhs_o */ +# line 136 "suffixes-GEN.ljm" +#ifndef DocProcessingSuffixRules +#define DocProcessingSuffixRules() @@\ +.tex.dvi: @@\ + $(RM) $@ @@\ + $(LTX) $< @@\ + @@\ +.verb.tex: @@\ + $(RM) $*.tex @@\ + expand $*.verb | $(VERBATIM) > $*.tex @@\ + @@\ +.tib.tex: @@\ + $(RM) $*.tex $*.verb-t.tex @@\ + $(TIB) $*.tib @@\ + expand $*.tib-t.tex | $(VERBATIM) > $*.tex @@\ + $(RM) $*.tib-t.tex @@\ + @@\ +.fig.ps: @@\ + $(RM) $@ @@\ + fig2dev -L ps $< $@ @@\ + @@\ +.fig.tex: @@\ + $(RM) $@ @@\ + fig2dev -L latex $< $@ + +#endif /* ! DocProcessingSuffixRules */ +# line 170 "suffixes-GEN.ljm" +.SUFFIXES: .xdvi .ps .dvi .tex .fig .tib .verb .itex .itxi .lit \ + _p.o .o .s .hi .hc .lhc .lhs .hs \ + .prl .lprl \ + .sh .lsh \ + .c .lc .h .lh .lex .llex .y \ + .ljm .jm +# line 185 "suffixes-GEN.ljm" +.s.o: + $(RM) $@ + $(AS) $(ASFLAGS) -o $@ $< || $(RM) $@ +# line 200 "suffixes-GEN.ljm" +LitSuffixRule(.ljm,.jm) /* mkworld */ + +#if SuffixRules_WantLiterate == YES + +LitSuffixRule(.lit,/*none*/) /* no language really */ +LitSuffixRule(.lhs,.hs) /* Haskell */ +LitSuffixRule(.lhc,.hc) /* Haskell assembler (C) */ +LitSuffixRule(.lprl,.prl) /* Perl */ +LitSuffixRule(.lsh,.sh) /* Bourne shell */ +LitSuffixRule(.lc,.c) /* C */ +LitSuffixRule(.lh,.h) +LitSuffixRule(.llex,.lex) /* Lex */ + +/* extra rule... flex can't handle #line's yet */ +/* also: save the .lex file in case of some debugging need */ +.llex.c: + $(RM) $@ $*.lex $*.lex.save + $(LIT2PGM) $(LIT2PGMFLAGS) $< > $*.lex + $(FLEX) $*.lex && mv $*.lex $*.lex.save && mv lex.yy.c $*.c + +#endif /* SuffixRules_WantLiterate */ +# line 234 "suffixes-GEN.ljm" +.y.c: + @echo please use an explicit "YaccRunWithExpectMsg" macro + +.lex.c: /* ToDo: should make it do flex */ + $(RM) $@ + $(LEX) -t $(LFLAGS) $< > $@ || ( $(RM) $@ && exit 1 ) +# line 244 "suffixes-GEN.ljm" +#if CCompilerGroksMinusCMinusO == YES +.c.o: + $(RM) $@ + $(CC) $(CFLAGS) -c $< -o $@ +.c.s: + $(RM) $@ + $(CC) $(CFLAGS) -S $< -o $@ + +#else /* ! CCompilerGroksMinusCMinusO */ +.c.o: + $(RM) $@ + $(CC) $(CFLAGS) -c $< + @if [ \( $(@D) != '.' \) -a \( $(@D) != './' \) ] ; then \ + echo mv $(@F) $@ ; \ + mv $(@F) $@ ; \ + fi +.c.s: + $(RM) $@ + $(CC) $(CFLAGS) -S $< + @if [ \( $(@D) != '.' \) -a \( $(@D) != './' \) ] ; then \ + echo mv $(@F) $@ ; \ + mv $(@F) $@ ; \ + fi +#endif /* ! CCompilerGroksMinusCMinusO */ +# line 287 "suffixes-GEN.ljm" +#if SuffixRules_WantDocProcessing == YES +DocProcessingSuffixRules() +#endif /* SuffixRules_WantDocProcessing */ |