rules.cnf
上传用户:weiliju62
上传日期:2007-01-06
资源大小:619k
文件大小:2k
- #ident @(#)rules.cnf 1.5 98/12/06
- ###########################################################################
- # Written 1998 by J. Schilling
- ###########################################################################
- #
- # Make Rules for global dynamic configuration
- #
- ###########################################################################
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; see the file COPYING. If not, write to
- # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- ###########################################################################
- config: $(OINCSDIR)/rules.cnf
- $(OINCSDIR)/Inull:
- $(MKDIR) -p $(OINCSDIR)
- @echo > $@
- $(OINCSDIR):
- $(MKDIR) -p $@
- #
- # Hack until the <mach>-<os>-*cc.rul files are updated
- #
- _CCCOM= $(OARCH:%-gcc=gcc)
- CCCOM= $(_CCCOM:%-cc=cc)
- CONFFLAGS += -cc=$(CCCOM)
- $(OINCSDIR)/rules.cnf $(OINCSDIR)/xconfig.h: $(OINCSDIR)/Inull
- $(SRCROOT)/conf/configure
- $(SRCROOT)/conf/rules.cnf.in
- $(SRCROOT)/conf/xconfig.h.in
- $(RUL_CONF)
- ###########################################################################
- RUL_CONF= @echo " ==> CONFIGURING RULES "$@""; $(RM_F) $@; cd $(OINCSDIR); CFLAGS="$(CFLAGS)" sh ../../conf/configure $(CONFFLAGS)
- ###########################################################################
- include $(OINCSDIR)/Inull
- include $(OINCSDIR)/rules.cnf
- ###########################################################################
- include $(SRCROOT)/$(RULESDIR)/$(LCONFIG)