summaryrefslogtreecommitdiff
path: root/ccast/Jamfile
blob: 3d03a2f7f48bbe55f698dd183595fe435c98e25d (plain)
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

# Jamfile for ccast library
 
#PREF_CCFLAGS 	= $(CCOPTFLAG) ;		# Turn optimisation on
PREF_CCFLAGS	= $(CCDEBUGFLAG) ;		# Debugging flags
PREF_LINKFLAGS	= $(LINKDEBUGFLAG) ;

if $(NT) {
    DEFINES += WIN32 ;
}

if $(SSLLIB) {
	DEFINES += USING_AXTLS ;		# Trigger right #include
	SubInclude axTLS ;
}

HDRS = ../h ../numlib ../spectro $(SSLINC) chan ../yajl ; 

# We create the channel protocol buffers implementation files thus:
# /src/protobuf_c/protobuf.exe --c_out=chan cast_channel.proto

CHAN_SRC =
	chan/cast_channel.pb-c.c
	chan/protobuf-c.c
	;

Objects ccmes.c $(CHAN_SRC) : : : axTLS ;
Objects ccmdns.c ccpacket.c ccast.c dpat.c ;

# ccast library
LibraryFromObjects libccast : ccmdns ccpacket ccmes ccast $(CHAN_SRC) dpat ;

LINKLIBS = ./libccast $(SSLLIB) ../yajl/libyajl ../numlib/libnum ../spectro/libconv ;

# If run in ccast dir, the following don't link from clean,
# due to the _NormPaths rule not resolving ../ccast into . 

# Test harness
#Main cctest : cctest.c ;
Main filt : filt.c ;
MainVariant dpat : dpat.c : : STANDALONE_TEST ;