vardir := /var/paraslash
mandir := $(datarootdir)/man/man1
MKDIR_P := mkdir -p
-prefixed_executables := $(addprefix para_, $(executables))
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
yy_src_dir := yy
yy_build_dir := $(build_dir)/yy
+executables := recv filter audioc write afh play
ifneq ($(CRYPTOLIB),)
ifeq ($(HAVE_OSL),yes)
+ executables += server upgrade_db
server_objs := $(addsuffix .o, \
server afh_common mp3_afh vss command net string \
signal time daemon http_send close_on_fork \
endif
endif
ifneq ($(CRYPTOLIB),)
+ executables += client audiod
client_objs := $(addsuffix .o, \
client net string fd lsu sched stdin stdout time sideband client_common \
buffer_tree crypt_common base64 version $(CRYPTOLIB) \
endif
endif
ifneq ($(HAVE_OSS)-$(HAVE_ALSA),no-no)
+ executables += mixer
mixer_objs := $(addsuffix .o, mixer exec string fd time lsu version)
ifeq ($(HAVE_OSS),yes)
mixer_objs += oss_mix.o
endif
endif
ifeq ($(HAVE_CURSES),yes)
+ executables += gui
gui_objs := $(addsuffix .o, exec signal string stat ringbuffer fd \
gui gui_theme lsu time sched version)
endif
afh_objs := $(addprefix $(object_dir)/, $(afh_objs))
play_objs := $(addprefix $(object_dir)/, $(play_objs))
+prefixed_executables := $(addprefix para_, $(executables))
man_pages := $(patsubst %, $(man_dir)/%.1, $(prefixed_executables))
autocrap := config.h.in configure