Import the current wip animation datatype and subclasses. further development will...
[AROS.git] / workbench / classes / datatypes / wav / Makefile
blob2a2a1be50676cbba9f149dfb82a7903ca426152d
1 MAKE = make
2 CC = vc +aosppc
3 CP = copy
4 RM = delete
5 MAKEDT = RX REXX:MakeDT.rexx
7 # options to specify on make command-line
9 # enable/disable gsm support
10 GSM = 1
11 # enable/disable g72x support
12 G72X = 1
14 ifeq "$(GSM)" "1"
15 GSMOPT = -DGSM610_SUPPORT
16 GSMLIB = -Lgsm -lgsm
17 GSMSRC = wave_gsm610.c
18 else
19 GSMOPT =
20 GSMLIB =
21 GSMSRC =
22 endif
24 ifeq "$(G72X)" "1"
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 \
27 bitpack_msb.c
28 else
29 G72XOPT =
30 G72XSRC =
31 endif
33 # Change these as required
34 OPTIMIZE = -O4 -speed -maxoptpasses=15
35 DEBUG =
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
46 DT_DESC = WAVE
47 VERSION = 50
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
59 OBJS = $(SRCS:.c=.o)
61 # Rules for building
62 all: $(TARGET) $(DT_DESC)
64 $(TARGET): $(OBJS)
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)
72 .PHONY: install
73 install: $(TARGET) $(DT_DESC)
74 $(CP) $(TARGET) SYS:Classes/DataTypes/
75 $(CP) $(DT_DESC) DEVS:DataTypes/
77 .PHONY: clean
78 clean:
79 $(RM) $(TARGET) $(OBJS)
81 .PHONY: distclean
82 distclean:
83 $(RM) $(OBJS)
85 .PHONY: revision
86 revision:
87 bumprev $(VERSION) $(TARGET)