root/rat/trunk/Makefile.in @ 2180

Revision 2180, 2.0 KB (checked in by ucacoxh, 15 years ago)

- Made converter query and creation functions same format as device and codec

functions.

  • 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
10
11CODEC_OBJS = codec.o codec_state.o codec_adpcm.o codec_gsm.o \
12             codec_l16.o codec_g711.o codec_lpc.o codec_types.o \
13             codec_vdvi.o codec_wbs.o cx_dvi.o cx_gsm.o cx_lpc.o \
14             cx_vdvi.o cx_wbs.o
15
16CC_OBJS    = new_channel.o channel_types.o cc_vanilla.o
17
18TOY_OBJS   = convert.o crypt.o render_3D.o repair.o sndfile.o
19
20CORE_OBJS  = playout.o source.o mbus_engine.o audio.o cushion.o main.o \
21             mbus_ui.o mix.o net.o parameters.o pckt_queue.o \
22             rtcp.o rtcp_db.o rtcp_pckt.o session.o \
23             statistics.o tcltk.o timers.o transmit.o transcoder.o \
24             ui.o ui_audiotool.o ui_transcoder.o
25
26OBJS = $(AUDIO_OBJS) $(CODEC_OBJS) $(CC_OBJS) $(TOY_OBJS) $(CORE_OBJS)
27
28SRCS := $(OBJS:%.o=%.c)
29
30TCL_OBJS = ui_audiotool.o ui_transcoder.o
31TCL_SRCS := $(OBJS:%.o=%.c)
32
33rat: $(OBJS) $(TCL_OBJS) ../common/libcommon.a
34        $(CC) $(OBJS) $(TCL_OBJS) $(CFLAGS) __LDLIBS__ __PROFILE__ __OPTIMIZE__ __CHECK_LIB__ -o rat
35
36.c.o:
37        $(CC) $(INCLUDE) $(CFLAGS) -c $<
38
39tcl2c/tcl2c: tcl2c/tcl2c.c
40        $(CC) -o tcl2c/tcl2c tcl2c/tcl2c.c
41
42$(TCL_OBJS): $(TCL_SRCS)
43
44ui_transcoder.c: ui_transcoder.tcl tcl2c/tcl2c
45        cat ui_transcoder.tcl | tcl2c/tcl2c ui_transcoder > ui_transcoder.c
46
47ui_audiotool.c: ui_audiotool.tcl tcl2c/tcl2c
48        cat asfilebox.tcl ui_audiotool.tcl | tcl2c/tcl2c ui_audiotool > ui_audiotool.c
49
50clean:
51        -rm -f $(OBJS) tcl_libs.c ui_audiotool.c ui_transcoder.c version.h Makefile Makefile.sed tcl2c/tcl2c rat
52
53etags:
54        etags *.[ch]
55
56ctags:
57        ctags *.[ch]
58
59release:
60        cvs tag release-`cat VERSION | sed "s/\./-/g"`
61
62tgz: rat
63        tar cvf rat-`cat VERSION`-__OSTYPE__.tar README.* MODS COPYRIGHT rat
64        gzip -9v rat-`cat VERSION`-__OSTYPE__.tar
65
66depend: $(SRCS)
67        makedepend $(INCLUDE) $(SRCS)
Note: See TracBrowser for help on using the browser.