# (C) Copyright Jeremy Siek 2001. Permission to copy, use, modify, sell # and distribute this software is granted provided this copyright notice # appears in all copies. This software is provided "as is" without # express or implied warranty, and with no claim as to its suitability # for any purpose. # This file is /NOT/ up-to-date; please use other toolset description # files as examples. # # I've tried to bring it up-to-date. -jsiek flags kcc CFLAGS on : -g ; flags kcc LINKFLAGS on : -g ; flags gcc LINKFLAGS off : -s ; flags kcc CFLAGS off : +K0 ; flags kcc CFLAGS speed : +K2 ; flags kcc CFLAGS space : ; flags kcc CFLAGS off : ; flags kcc CFLAGS on : --inline_generated_space_time=10000 --inline_implicit_space_time=10000 --inline_keyword_space_time=10000 ; flags kcc CFLAGS full : --inline_auto_space_time=10000 --inline_generated_space_time=10000 --inline_implicit_space_time=10000 --inline_keyword_space_time=10000 ; flags kcc CFLAGS ; flags kcc C++FLAGS ; flags kcc DEFINES ; flags kcc UNDEFS ; flags kcc HDRS ; flags kcc STDHDRS ; flags kcc LINKFLAGS ; flags kcc ARFLAGS ; flags kcc LIBPATH ; flags kcc NEEDLIBS ; flags kcc FINDLIBS ; kcc.bin-directory = [ conditional $(kcc.root-directory) : $(kcc.root-directory)$(SLASH)bin$(SLASH) : " " ] ; detect-build-tools kcc : "KCC" ; #### Link #### rule Link-action { kcc-Link-action $(<) : $(>) ; } actions kcc-Link-action bind NEEDLIBS { $(kcc.bin-directory)KCC $(LINKFLAGS) -o "$(<)" -L$(STDLIBPATH) "$(>)" $(NEEDLIBS) -lm } #### Cc ##### rule Cc-action { kcc-Cc-action $(<) : $(>) ; } actions kcc-Cc-action { $(kcc.bin-directory)KCC -c $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" } #### C++ #### rule C++-action { kcc-C++-action $(<) : $(>) ; } actions kcc-C++-action { $(kcc.bin-directory)KCC -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)" } #### Archive #### rule Archive-action { kcc-Archive-action $(<) : $(>) ; } actions updated together piecemeal kcc-Archive-action { KCC -g $(ARFLAGS) -o "$(<)" "$(>)" }