File: Jamrules-bigloo

package info (click to toggle)
jam 2.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,152 kB
  • sloc: ansic: 7,851; yacc: 443; sh: 121; makefile: 48
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" $(>) ;
	}
}