Plan 9 from Bell Labs’s /usr/web/sources/contrib/fernan/nhc98/src/cpphs/mkfile

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


</$objtype/mkfile

DIR=\
  Language/Preprocessor\
  Language/Preprocessor/Cpphs\
  Text/ParserCombinators\
  
HCFILES=\
  cpphs.hc\
  Language/Preprocessor/Cpphs.hc\
  Language/Preprocessor/Unlit.hc\
  Language/Preprocessor/Cpphs/CppIfdef.hc\
  Language/Preprocessor/Cpphs/HashDefine.hc\
  Language/Preprocessor/Cpphs/MacroPass.hc\
  Language/Preprocessor/Cpphs/Options.hc\
  Language/Preprocessor/Cpphs/Position.hc\
  Language/Preprocessor/Cpphs/ReadFirst.hc\
  Language/Preprocessor/Cpphs/RunCpphs.hc\
  Language/Preprocessor/Cpphs/SymTab.hc\
  Language/Preprocessor/Cpphs/Tokenise.hc\
  Text/ParserCombinators/HuttonMeijer.hc\

%.$O:
	for(i in $HCFILES)@{
		##echo $i
		hcp $i $i.c
		$CC $CFLAGS $i.c
		rm $i.c
	}

cpphs: %.$O
    8l -o cpphs *.$O ../runtime/main.$O\
       ../runtime/mutator.$O\
       ../runtime/mutlib.$O\
       ../prelude/Prelude.a ../runtime/Runtime.a

clean:V:
    rm *.hc.$O
    rm cpphs

CC=pcc
CFLAGS=-DPlan9 -D_BSD_EXTENSION -DLOW_BYTE_FIRST \
       -I../runtime/Kernel -c 

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].