Cleanup
[carla.git] / source / modules / audio_decoder / Makefile
blobf000174e99920975ea402f0abfcb8064844d2612
1 #!/usr/bin/make -f
2 # Makefile for audio_decoder #
3 # -------------------------- #
4 # Created by falkTX
7 CWD=../..
8 MODULENAME=audio_decoder
9 include ../Makefile.mk
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_C_FLAGS += -Werror=deprecated-declarations
15 # ---------------------------------------------------------------------------------------------------------------------
17 OBJS = \
18 $(OBJDIR)/ad_dr_mp3.c.o \
19 $(OBJDIR)/ad_ffmpeg.c.o \
20 $(OBJDIR)/ad_minimp3.c.o \
21 $(OBJDIR)/ad_plugin.c.o \
22 $(OBJDIR)/ad_soundfile.c.o
24 # ---------------------------------------------------------------------------------------------------------------------
26 all: $(MODULEDIR)/$(MODULENAME).a
28 # ---------------------------------------------------------------------------------------------------------------------
30 clean:
31 rm -f $(OBJDIR)/*.o $(MODULEDIR)/$(MODULENAME)*.a
33 debug:
34 $(MAKE) DEBUG=true
36 # ---------------------------------------------------------------------------------------------------------------------
38 $(MODULEDIR)/$(MODULENAME).a: $(OBJS)
39 -@mkdir -p $(MODULEDIR)
40 @echo "Creating $(MODULENAME).a"
41 $(SILENT)rm -f $@
42 $(SILENT)$(AR) crs $@ $^
44 # ---------------------------------------------------------------------------------------------------------------------
46 $(OBJDIR)/ad_ffmpeg.c.o: ad_ffmpeg.c
47 -@mkdir -p $(OBJDIR)
48 @echo "Compiling $<"
49 $(SILENT)$(CC) $< $(BUILD_C_FLAGS) $(FFMPEG_FLAGS) -c -o $@
51 $(OBJDIR)/ad_soundfile.c.o: ad_soundfile.c
52 -@mkdir -p $(OBJDIR)
53 @echo "Compiling $<"
54 $(SILENT)$(CC) $< $(BUILD_C_FLAGS) $(SNDFILE_FLAGS) -c -o $@
56 $(OBJDIR)/ad_%.c.o: ad_%.c
57 -@mkdir -p $(OBJDIR)
58 @echo "Compiling $<"
59 $(SILENT)$(CC) $< $(BUILD_C_FLAGS) -c -o $@
61 -include $(OBJS:%.o=%.d)
63 # ---------------------------------------------------------------------------------------------------------------------