Some "cast to pointer from integer of different size" warnings removed.
[AROS-Contrib.git] / MultiMedia / play / Makefile
blob56e47dad20099ff35b802f073db2abbde1b2b51e
1 BASEDIR=$(TOP)/bin/$(AROS_HOST_ARCH)-$(AROS_HOST_CPU)
2 DESTDIR=$(TOP)/bin/$(AROS_TARGET_ARCH)-$(AROS_TARGET_CPU)
3 CC=$(BASEDIR)/tools/$(AROS_TARGET_CPU)-$(AROS_TARGET_ARCH)-aros-gcc
4 OBJ = ./obj/
5 PROJECTNAME = play
6 SRCS = play.c sdlfunc.c decoder.c freq.c getopt.c
8 OBJS = $(patsubst %.c, $(OBJ)%.o, $(SRCS))
10 CFLAGS = -g -O2 -I../SDL/ -Ilibavcodec -Ilibavformat -DAROS
11 LIBS = -Llibavcodec -Llibavformat -L../SDL \
12 -lavcodec -lavformat -lavcodec -lSDL -lasl -larossupport
14 all: $(PROJECTNAME)
16 install:
17 cp $(PROJECTNAME) $(DESTDIR)/AROS/Tests/
19 libavformat/libavformat.a: libavformat/*.c libavformat/*.h
20 make -C libavformat
22 libavcodec/libavcodec.a: libavcodec/*.c libavcodec/*.h
23 make -C libavcodec
25 $(OBJ)%.o: %.c
26 $(CC) $(CFLAGS) -o $@ -c $<
28 $(PROJECTNAME): libavcodec/libavcodec.a libavformat/libavformat.a $(OBJS)
29 $(CC) -o $@ $(OBJS) $(LIBS)
31 clean:
32 make -C libavcodec clean
33 make -C libavformat clean
34 rm -f $(OBJ)*.o $(PROJECTNAME)