HELP2MAN := @help2man@
MKDIR_P := mkdir -p
+id3tag_ldflags := @id3tag_ldflags@
+
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
uname_rs := $(shell uname -rs)
@[ -z "$(Q)" ] || echo 'CC $<'
$(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @faad_cppflags@ $<
+
+$(object_dir)/mp3_afh.o: CPPFLAGS += @id3tag_cppflags@
$(object_dir)/mp3_afh.o: mp3_afh.c | $(object_dir)
- @[ -z "$(Q)" ] || echo 'CC $<'
- $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @id3tag_cppflags@ $<
$(object_dir)/gui%.o: gui%.c | $(object_dir)
@[ -z "$(Q)" ] || echo 'CC $<'
-include $(m4_deps)
endif
+para_recv para_afh para_play para_server: LDFLAGS += $(id3tag_ldflags)
+
para_recv: $(recv_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
$(Q) $(CC) $(recv_objs) -o $@ @recv_ldflags@ $(LDFLAGS)
if test ${have_libid3tag} = yes; then
AC_DEFINE(HAVE_LIBID3TAG, 1, define to 1 you have libid3tag)
- server_ldflags="$server_ldflags $id3tag_libs -lid3tag -lz"
- afh_ldflags="$afh_ldflags $id3tag_libs -lid3tag -lz"
- play_ldflags="$play_ldflags -lz"
- recv_ldflags="$recv_ldflags $id3tag_libs -lid3tag"
- play_ldflags="$play_ldflags $id3tag_libs -lid3tag"
AC_SUBST(id3tag_cppflags)
-else
- AC_MSG_WARN([no support for id3v2 tags])
+ AC_SUBST(id3tag_ldflags, "$id3tag_libs -lid3tag -lz")
fi
CPPFLAGS="$OLD_CPPFLAGS"
LDFLAGS="$OLD_LDFLAGS"