File: rules.cnf

package info (click to toggle)
star 1.5a57-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,276 kB
  • ctags: 4,381
  • sloc: ansic: 36,081; sh: 2,331; makefile: 216
file content (52 lines) | stat: -rw-r--r-- 1,756 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ident @(#)rules.cnf	1.8 04/01/23 
###########################################################################
# Written 1998 by J. Schilling
###########################################################################
#
# Make Rules for global dynamic configuration
#
###########################################################################
# Copyright Jrg Schilling. All rights reserved.
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only.
# See the file CDDL.Schily.txt in this distribution or
# http://opensource.org/licenses/cddl1.php for details.
###########################################################################

config: $(OINCSDIR)/rules.cnf

$(OINCSDIR)/Inull:
	$(MKDIR) -p $(OINCSDIR)
	@echo > $@

$(OINCSDIR):
	$(MKDIR) -p $@

#
# Hack until the <mach>-<os>-*cc.rul files are updated
#
_HCCCOM=	$(OARCH:%-gcc=gcc)
HCCCOM=		$(_HCCCOM:%-cc=cc)

_CCCOM=		$(_UNIQ)$(CCCOM)
__CCCOM=	$(_CCCOM:$(_UNIQ)=$(HCCCOM))
XCCCOM=		$(__CCCOM:$(_UNIQ)%=%)

#CONFFLAGS +=	-cc=$(XCCCOM)

$(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); \
		CONFIG_NOFAIL=TRUE CC="$(XCCCOM)" CFLAGS="$(CFLAGS)" sh ../../conf/configure $(CONFFLAGS)
###########################################################################
include $(OINCSDIR)/Inull
include $(OINCSDIR)/rules.cnf
###########################################################################
include	$(SRCROOT)/$(RULESDIR)/$(LOCAL_CNF)