2 # Makefile for audio_decoder #
3 # -------------------------- #
8 MODULENAME
=audio_decoder
11 # ---------------------------------------------------------------------------------------------------------------------
13 BUILD_C_FLAGS
+= -Werror
=deprecated-declarations
15 # ---------------------------------------------------------------------------------------------------------------------
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 # ---------------------------------------------------------------------------------------------------------------------
31 rm -f
$(OBJDIR
)/*.o
$(MODULEDIR
)/$(MODULENAME
)*.a
36 # ---------------------------------------------------------------------------------------------------------------------
38 $(MODULEDIR
)/$(MODULENAME
).a
: $(OBJS
)
39 -@mkdir
-p
$(MODULEDIR
)
40 @echo
"Creating $(MODULENAME).a"
42 $(SILENT
)$(AR
) crs
$@
$^
44 # ---------------------------------------------------------------------------------------------------------------------
46 $(OBJDIR
)/ad_ffmpeg.c.o
: ad_ffmpeg.c
49 $(SILENT
)$(CC
) $< $(BUILD_C_FLAGS
) $(FFMPEG_FLAGS
) -c
-o
$@
51 $(OBJDIR
)/ad_soundfile.c.o
: ad_soundfile.c
54 $(SILENT
)$(CC
) $< $(BUILD_C_FLAGS
) $(SNDFILE_FLAGS
) -c
-o
$@
56 $(OBJDIR
)/ad_
%.c.o
: ad_
%.c
59 $(SILENT
)$(CC
) $< $(BUILD_C_FLAGS
) -c
-o
$@
61 -include $(OBJS
:%.o
=%.d
)
63 # ---------------------------------------------------------------------------------------------------------------------