File: Jamrules-bigloo

package info (click to toggle)
jam 2.5rel-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze, wheezy
  • size: 820 kB
  • ctags: 1,160
  • sloc: ansic: 6,580; yacc: 443; makefile: 67; sh: 63
file content (47 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (6)
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
# Jam rules for the bigloo scheme compiler
# (c) 2003 Yann Dirson

# Usage:
#
# BiglooMain foo : foo.scm bar.scm ;
#
#  or:
#
# LINK = $(BIGLOO)
# Main foo : foo.scm bar.scm ;


# TODO:
# - header scanning
# - find a way to get rid of BiglooMain, whose sole purpose is to
# assign a correct value to LINK
# - many files are rebuilt several times with no apparent reason

BIGLOO ?= bigloo ;
BFLAGS ?= "" ;

rule BiglooMain
{
	Main $(<) : $(>) ;
	LINK on $(<) = $(BIGLOO) ;
}

rule Bigloo
{
	DEPENDS $(<) : $(>) ;
	Clean clean : $(<) $(<:S=.c) ;
}

actions Bigloo
{
	bigloo $(BFLAGS) -c -o $(<) $(>)
}

rule UserObject
{
	switch $(>)
	{
	case *.scm	: Bigloo $(<) : $(>) ;
	case *		: ECHO "unknown suffix on" $(>) ;
	}
}