/****************************************************************************** * * Copyright (C) 1996-2005 Jason Evans . * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice(s), this list of conditions and the following disclaimer * unmodified other than the allowable addition of one or more * copyright notices. * 2. Redistributions in binary form must reproduce the above copyright * notice(s), this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** * * Version: Onyx 5.1.2 * * Top level Cookfile for modules. * ******************************************************************************/ #include-cooked [fromto % @objroot@/mod/%/Cookfile.inc @mods@] /* * Targets. */ mods : @mods@; mods_tests : [addsuffix _mods_tests @mods@]; mods_check : [addsuffix _mods_check @mods@]; mods_check_update : [addsuffix _mods_check_update @mods@]; mods_install : [addsuffix _mods_install @mods@]; mods_uninstall : [addsuffix _mods_uninstall @mods@]; mods_clean : [addsuffix _mods_clean @mods@]; mods_distclean : [addsuffix _mods_distclean @mods@]; /* * Build rules for module C files --> object files. */ @objroot@/mod/%0src/%1.o_s : @srcroot@/mod/%0src/%1.c set mkdir { [TCC] [S_CFLAGS] [CPPFLAGS] -c @srcroot@/mod/%0src/%1.c -o [target]; c_incl [filter_cppdefs [CPPFLAGS]] --no-cache -Absent_Local_Ignore -No_System @srcroot@/mod/%0src/%1.c "--prefix='"[target]" : "@srcroot@/mod/%0src/%1.c"'" "--suffix='set nodefault;'" -o [fromto mod/%0src/%1.o_s mod/%0src/%1.d_s [target]]; }