X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=Makefile.in;h=53ec53d6f1c5b3e968ca2c3748b5206792a07684;hb=2440c41a10f1862dafdbe02d8cc64ecf7cfddc41;hp=3e62d05fa04692c075a1027145927d0987484716;hpb=761d9bd95a6601c0b3be6591a6b6672b755e1fbe;p=paraslash.git diff --git a/Makefile.in b/Makefile.in index 3e62d05f..53ec53d6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -8,7 +8,7 @@ PACKAGE_VERSION := @PACKAGE_VERSION@ INSTALL := @install@ STRIP := $(CROSS_COMPILE)strip HOSTCC ?= cc -executables := $(addprefix para_, @executables@) +executables := @executables@ ggo_descriptions_declared := @ggo_descriptions_declared@ object_executable_matrix := @object_executable_matrix@ @@ -50,6 +50,8 @@ nsl_ldflags := @nsl_ldflags@ curses_ldflags := @curses_ldflags@ core_audio_ldflags := @core_audio_ldflags@ +prefixed_executables := $(addprefix para_, $(executables)) + build_date := $(shell date) uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS") uname_rs := $(shell uname -rs) @@ -106,7 +108,7 @@ CPPFLAGS += $(osl_cppflags) LDFLAGS += @clock_gettime_ldflags@ -man_pages := $(patsubst %, $(man_dir)/%.1, $(executables)) +man_pages := $(patsubst %, $(man_dir)/%.1, $(prefixed_executables)) autocrap := config.h.in configure tarball_pfx := @PACKAGE_TARNAME@-$(PACKAGE_VERSION) @@ -123,7 +125,7 @@ else endif .PHONY: dep all clean distclean maintainer-clean install man tarball -all: dep $(executables) $(man_pages) +all: dep $(prefixed_executables) $(man_pages) dep: $(deps) man: $(man_pages) tarball: $(tarball) @@ -182,64 +184,35 @@ $(hostbin_dir)/error2: error2.c | $(hostbin_dir) error2.h: $(hostbin_dir)/error2 @[ -z "$(Q)" ] || echo 'ER2 $<' @echo "$(object_executable_matrix)" | $< > $@ -$(object_dir)/crypt.o: crypt.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(openssl_cppflags) $< -$(object_dir)/spx_common.o: spx_common.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(speex_cppflags) $(ogg_cppflags) $< - -$(object_dir)/spxdec_filter.o: spxdec_filter.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(speex_cppflags) $(ogg_cppflags) $< - -$(object_dir)/spx_afh.o: spx_afh.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(speex_cppflags) $(ogg_cppflags) $< - -$(object_dir)/oggdec_filter.o: oggdec_filter.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(ogg_cppflags) $< - -$(object_dir)/ogg_afh.o: ogg_afh.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(ogg_cppflags) $< - -$(object_dir)/ogg_afh_common.o: ogg_afh_common.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(ogg_cppflags) $< - -$(object_dir)/mp3dec_filter.o: mp3dec_filter.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(mad_cppflags) $< - -$(object_dir)/compress_filter.o: compress_filter.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) -O3 $< - -$(object_dir)/aacdec_filter.o: aacdec_filter.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(faad_cppflags) $< - -$(object_dir)/aac_common.o: aac_common.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(faad_cppflags) $< - -$(object_dir)/aac_afh.o: aac_afh.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(faad_cppflags) $< +$(object_dir)/%.o: %.c | $(object_dir) $(object_dir)/opus%.o: CPPFLAGS += $(opus_cppflags) -$(object_dir)/mp3_afh.o: CPPFLAGS += $(id3tag_cppflags) +$(object_dir)/gui%.o: CPPFLAGS += $(curses_cppflags) +$(object_dir)/spx%.o: CPPFLAGS += $(speex_cppflags) +$(object_dir)/%.cmdline.o: CPPFLAGS += -Wno-unused-function -$(object_dir)/mp3_afh.o: mp3_afh.c | $(object_dir) +$(object_dir)/mp3_afh.o: CPPFLAGS += $(id3tag_cppflags) +$(object_dir)/crypt.o: CPPFLAGS += $(openssl_cppflags) +$(object_dir)/mp3dec_filter.o: CPPFLAGS += $(mad_cppflags) +$(object_dir)/compress_filter.o: CPPFLAGS += -O3 +$(object_dir)/ao_write.o: CPPFLAGS += $(ao_cppflags) + +$(object_dir)/aacdec_filter.o \ +$(object_dir)/aac_common.o \ +$(object_dir)/aac_afh.o \ +: CPPFLAGS += $(faad_cppflags) + +$(object_dir)/spx_common.o \ +$(object_dir)/spxdec_filter.o \ +$(object_dir)/spx_afh.o \ +$(object_dir)/oggdec_filter.o \ +$(object_dir)/ogg_afh.o \ +$(object_dir)/ogg_afh_common.o \ +: CPPFLAGS += $(ogg_cppflags) -$(object_dir)/gui%.o: gui%.c | $(object_dir) - @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(curses_cppflags) $< -$(object_dir)/ao_write.o: ao_write.c | $(object_dir) +$(object_dir)/%.o: %.c | $(object_dir) @[ -z "$(Q)" ] || echo 'CC $<' - $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(ao_cppflags) $< + $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $< $(object_dir)/%.cmdline.o: $(cmdline_dir)/%.cmdline.c $(cmdline_dir)/%.cmdline.h | $(object_dir) @[ -z "$(Q)" ] || echo 'CC $<' @@ -264,7 +237,7 @@ all_objs := $(sort @recv_objs@ @filter_objs@ @client_objs@ @gui_objs@ \ @audiod_objs@ @audioc_objs@ @fade_objs@ @server_objs@ \ @write_objs@ @afh_objs@ @play_objs@) deps := $(addprefix $(dep_dir)/, $(all_objs:.o=.d)) -m4_deps := $(addprefix $(m4depdir)/, $(addsuffix .m4d, @executables@)) +m4_deps := $(addprefix $(m4depdir)/, $(addsuffix .m4d, $(executables))) recv_objs := $(addprefix $(object_dir)/, @recv_objs@) filter_objs := $(addprefix $(object_dir)/, @filter_objs@) @@ -379,7 +352,7 @@ para_play: $(play_objs) clean: @[ -z "$(Q)" ] || echo 'CLEAN' - $(Q) rm -f $(executables) + $(Q) rm -f $(prefixed_executables) $(Q) rm -rf $(object_dir) clean2: clean @@ -398,7 +371,8 @@ maintainer-clean: distclean install: all man $(MKDIR_P) $(BINDIR) $(MANDIR) - $(INSTALL) -s --strip-program $(STRIP) -m 755 $(executables) $(BINDIR) + $(INSTALL) -s --strip-program $(STRIP) -m 755 \ + $(prefixed_executables) $(BINDIR) $(INSTALL) -m 644 $(man_pages) $(MANDIR) $(MKDIR_P) $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain