File: Jamfile

package info (click to toggle)
fastdep 0.16-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 596 kB
  • ctags: 323
  • sloc: cpp: 2,144; ansic: 814; sh: 208; makefile: 124
file content (65 lines) | stat: -rw-r--r-- 925 bytes parent folder | download | duplicates (5)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
# Jamfile
#
# Builds fastdep with VC++ and GCC using 'jam'
#
# Why use Make if there is free Jam at www.perforce.com?
#

if $(NT) && $(MSVCNT)
{
	FASTDEP_BINDIR ?= f:$(SLASH)bin_dos ;

	SubDirC++Flags 
			-GX 
			-D "WIN32" 
			-D "VC_GETOPT" 	# external/getopt1.c
			-I external 
			-TP				# let the *.cc be C++
			;

	EXTSRC = 				#extra sources
		external\\getopt.c 
		external\\getopt1.c
		realpath.cc
		;
}

else # Linux, Unix, Windows GCC (Mingw, Cygwin)
{
	
	if $(MINGW)
	{
		EXTSRC = realpath.cc ;
	}
	else
	{
		FASTDEP_BINDIR ?= $(SLASH)usr$(SLASH)local$(SLASH)bin  ;
	}
	C++ 	= g++ ;
	LINK 	= g++ ;

	SubDirC++Flags -Wall -O2 -g ;
}

# Target to build: fastdep
#
Main fastdep :
	$(EXTSRC)
	CheckVersion.cc
	CompileState.cc
	Define.cc
	Element.cc
	Expression.cc
	FileCache.cc
	FileStructure.cc
	If.cc
	Include.cc
	MappedFile.cc
	Sequence.cc
	fastdep.cc
	;

InstallBin "$(FASTDEP_BINDIR)" : fastdep ;

# vim:ts=4:nu