root/rat/trunk/Makefile.in @ 2507

Revision 2507, 2.3 KB (checked in by ucaccsp, 15 years ago)

Tweak "make tgz" option, to include all the readme files.

  • 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_16.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
54        -rm -f tcl2c/tcl2c rat-__VERSION__ sdr2.plugin.S02.audio.rtp.\*.rat-__VERSION__
55
56etags:
57        etags *.[ch] ../common/*.[ch]
58
59ctags:
60        ctags *.[ch] ../common/*.[ch]
61
62release:
63        cvs tag release-`cat VERSION | sed "s/\./-/g"`
64
65tgz: rat-__VERSION__
66        tar cvf rat-__VERSION__-__OSTYPE__.tar README.* MODS COPYRIGHT INSTALL.TXT VERSION rat-__VERSION__
67        gzip -9v rat-__VERSION__-__OSTYPE__.tar
68
69depend: $(SRCS)
70        makedepend $(INCLUDE) $(SRCS)
Note: See TracBrowser for help on using the browser.