root/rat/trunk/Makefile.in @ 2485

Revision 2485, 2.2 KB (checked in by ucaccsp, 15 years ago)

The name of the binary now includes the version number. Right now this is
probably just annoying, but it will allow us to distribute an sdr plugin
with rat in future (the plugins have to refer to a tool by executable name,
and hence it's hard to have plugins for multiple versions of a tool. Also
sdr makes this difficult for us, since we cannot replace the built-in rat
plugin at runtime - we must call our new tool something different).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#
2# Makefile for the RAT project. This probably requires GNU make.
3#
4
5CFLAGS         = __WFLAGS__ __DEBUG__ __CHAR__ __PROFILE__ __OPTIMIZE__ __CHECK_FLAG__ __DEFS__ -D__OSTYPE__ -DSASR -DFAST -DUSE_FLOAT_MUL
6INCLUDE        = __INCLUDE__
7CC             = __CC__
8
9AUDIO_OBJS = __AUDIO__ auddev.o auddev_null.o audio_fmt.o audio_util.o
10
11CODEC_OBJS = codec.o codec_state.o codec_dvi.o codec_gsm.o \
12             codec_l16.o codec_g711.o codec_g726.o codec_lpc.o \
13             codec_types.o codec_vdvi.o codec_wbs.o cx_dvi.o \
14             cx_g726.o cx_g726_24.o cx_g726_32.o cx_g726_40.o \
15             cx_gsm.o cx_lpc.o cx_vdvi.o cx_wbs.o
16
17CC_OBJS    = channel.o channel_types.o cc_vanilla.o cc_rdncy.o
18
19TOY_OBJS   = convert.o crypt.o render_3D.o repair.o sndfile.o
20
21CORE_OBJS  = ts.o playout.o statistics.o source.o \
22             rtcp.o rtcp_db.o rtcp_pckt.o session.o \
23             mbus_engine.o audio.o cushion.o main.o \
24             mbus_ui.o mix.o net.o parameters.o pckt_queue.o \
25             tcltk.o timers.o transmit.o transcoder.o \
26             ui.o rtp_callback.o
27
28OBJS = $(AUDIO_OBJS) $(CODEC_OBJS) $(CC_OBJS) $(TOY_OBJS) $(CORE_OBJS)
29
30SRCS := $(OBJS:%.o=%.c)
31
32TCL_OBJS = ui_audiotool.o ui_transcoder.o
33TCL_SRCS := $(TCL_OBJS:%.o=%.c)
34
35rat-__VERSION__: $(OBJS) $(TCL_OBJS) ../common/libcommon.a
36        $(CC) $(OBJS) $(TCL_OBJS) $(CFLAGS) __LDLIBS__ __PROFILE__ __OPTIMIZE__ __CHECK_LIB__ -o rat-__VERSION__
37
38.c.o:
39        $(CC) $(INCLUDE) $(CFLAGS) -c $<
40
41tcl2c/tcl2c: tcl2c/tcl2c.c
42        $(CC) -o tcl2c/tcl2c tcl2c/tcl2c.c
43
44$(TCL_OBJS): $(TCL_SRCS)
45
46ui_transcoder.c: ui_transcoder.tcl tcl2c/tcl2c
47        cat ui_transcoder.tcl | tcl2c/tcl2c ui_transcoder > ui_transcoder.c
48
49ui_audiotool.c: ui_audiotool.tcl tcl2c/tcl2c
50        cat asfilebox.tcl ui_audiotool.tcl | tcl2c/tcl2c ui_audiotool > ui_audiotool.c
51
52clean:
53        -rm -f $(OBJS) tcl_libs.c ui_audiotool.c ui_transcoder.c version.h Makefile Makefile.sed tcl2c/tcl2c rat-__VERSION__
54
55etags:
56        etags *.[ch] ../common/*.[ch]
57
58ctags:
59        ctags *.[ch] ../common/*.[ch]
60
61release:
62        cvs tag release-`cat VERSION | sed "s/\./-/g"`
63
64tgz: rat-__VERSION__
65        tar cvf rat-__VERSION__-__OSTYPE__.tar README.* MODS COPYRIGHT rat-__VERSION__
66        gzip -9v rat-__VERSION__-__OSTYPE__.tar
67
68depend: $(SRCS)
69        makedepend $(INCLUDE) $(SRCS)
Note: See TracBrowser for help on using the browser.