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@
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)
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)
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)
@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@)
clean:
@[ -z "$(Q)" ] || echo 'CLEAN'
- $(Q) rm -f $(executables)
+ $(Q) rm -f $(prefixed_executables)
$(Q) rm -rf $(object_dir)
clean2: clean
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