root/rat/trunk/Makefile.in @ 2266

Revision 2266, 2.1 KB (checked in by ucacoxh, 15 years ago)

- First pass at redundant encoder for 3.3.
- No hooks into app yet, and no decoder.

  • 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
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: $(OBJS) $(TCL_OBJS) ../common/libcommon.a
36        $(CC) $(OBJS) $(TCL_OBJS) $(CFLAGS) __LDLIBS__ __PROFILE__ __OPTIMIZE__ __CHECK_LIB__ -o rat
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
54
55etags:
56        etags *.[ch]
57
58ctags:
59        ctags *.[ch]
60
61release:
62        cvs tag release-`cat VERSION | sed "s/\./-/g"`
63
64tgz: rat
65        tar cvf rat-`cat VERSION`-__OSTYPE__.tar README.* MODS COPYRIGHT rat
66        gzip -9v rat-`cat VERSION`-__OSTYPE__.tar
67
68depend: $(SRCS)
69        makedepend $(INCLUDE) $(SRCS)
Note: See TracBrowser for help on using the browser.