5 MAKEDT
= RX REXX
:MakeDT.rexx
7 # options to specify on make command-line
9 # enable/disable gsm support
11 # enable/disable g72x support
15 GSMOPT
= -DGSM610_SUPPORT
17 GSMSRC
= wave_gsm610.c
25 G72XOPT
= -DG72X_SUPPORT
26 G72XSRC
= wave_g72x.c g72x
/g72x.c g72x
/g721.c g72x
/g723_16.c g72x
/g723_24.c g72x
/g723_40.c \
33 # Change these as required
34 OPTIMIZE
= -O4
-speed
-maxoptpasses
=15
36 CFLAGS
= $(OPTIMIZE
) $(DEBUG
) -I.
-Iinclude
$(GSMOPT
) $(G72XOPT
)
38 # Flags passed to gcc during linking
39 LINK
= $(OPTIMIZE
) $(DEBUG
)
41 # Additional linker libraries
42 LIBS
= $(GSMLIB
) -lvc
-lm
44 # Name of the "thing" to build
45 TARGET
= wave.datatype
49 # Source code files used in this project
50 # Add any additional files to this line
52 SRCS
= init.c wave_class.c decoders.c wave_pcm.c wave_ima_adpcm.c wave_ms_adpcm.c wave_alaw.c \
53 wave_ieee_float.c
$(G72XSRC
) $(GSMSRC
) \
54 bitpack.c bitpack_lsb.c
56 # -------------------------------------------------------------
57 # Nothing should need changing below this line
62 all: $(TARGET
) $(DT_DESC
)
65 $(CC
) $(LINK
) -nostdlib
-o
$(TARGET
) $(OBJS
) $(LIBS
)
67 init.o
: $(TARGET
)_rev.h
69 $(DT_DESC
): $(DT_DESC
).dt
70 $(MAKEDT
) $(DT_DESC
).dt
$(DT_DESC
)
73 install: $(TARGET
) $(DT_DESC
)
74 $(CP
) $(TARGET
) SYS
:Classes
/DataTypes
/
75 $(CP
) $(DT_DESC
) DEVS
:DataTypes
/
79 $(RM
) $(TARGET
) $(OBJS
)
87 bumprev
$(VERSION
) $(TARGET
)