-V := ($(TGZ_PREFIX)@PACKAGE_STRING@, $(codename))\n$(COPYRIGHT)\n$(DISCLAIMER)
-module_ggo_opts := --set-version="(@PACKAGE_STRING@, $(codename))"
-
-grab_client.cmdline.h grab_client.cmdline.c: grab_client.ggo
- gengetopt $(module_ggo_opts) \
- -S \
- --set-package=grab \
- --no-handle-help \
- --no-handle-error \
- --no-handle-version \
- --arg-struct-name=grab_client_args_info \
- --file-name=$(subst .ggo,,$<).cmdline \
- --func-name $(subst .ggo,,$<)_cmdline_parser < $<
-
-%_recv.cmdline.h %_recv.cmdline.c: %_recv.ggo
- gengetopt $(module_ggo_opts) \
- --set-package=$(subst .ggo,,$<) \
- --arg-struct-name=$(subst .ggo,,$<)_args_info \
- --file-name=$(subst .ggo,,$<).cmdline \
- --func-name $(subst .ggo,,$<)_cmdline_parser < $<
-
-%_filter.cmdline.h %_filter.cmdline.c: %_filter.ggo
- gengetopt $(module_ggo_opts) \
- --set-package=$(subst .ggo,,$<) \
- --arg-struct-name=$(subst .ggo,,$<)_args_info \
- --file-name=$(subst .ggo,,$<).cmdline \
- --func-name $(subst _filter.ggo,,$<)_cmdline_parser < $<
-%_write.cmdline.h %_write.cmdline.c: %_write.ggo
- gengetopt -S $(module_ggo_opts) \
- --set-package=$(subst .ggo,,$<) \
- --arg-struct-name=$(subst .ggo,,$<)_args_info \
- --file-name=$(subst .ggo,,$<).cmdline \
- --func-name $(subst _write.ggo,,$<)_cmdline_parser < $<
-
-%.cmdline.h %.cmdline.c: %.ggo
- case $< in client.ggo) O="--unamed-opts=command";; \
- audioc.ggo) O="--unamed-opts=command";; \
- esac; \
- gengetopt $$O \
- --conf-parser \
- --file-name=$(*F).cmdline \
- --func-name $(*F)_cmdline_parser \
- --arg-struct-name=$(*F)_args_info \
- --set-package="para_$(subst .cmdline,,$(*F))" \
- --set-version="$V" < $<
-
-server_command_list.c: server.cmd server_command_list.h
- echo '#include "server.h"' > $@
- echo '#include "user_list.h"' >> $@
- echo '#include "server_command_list.h"' >> $@
- echo 'struct server_command cmd_struct[] = {' >>$@
- ./command_util.sh array < $< >>$@
- echo '{.name = NULL}};' >> $@
-server_command_list.h: server.cmd
- echo 'extern struct server_command cmd_struct[];' > $@
- ./command_util.sh proto < $< >> $@
-
-mysql_selector_command_list.c: mysql_selector.cmd mysql_selector_command_list.h
- echo '#include "server.h"' > $@
- echo '#include "user_list.h"' >> $@
- echo '#include "mysql_selector_command_list.h"' >> $@
- echo 'struct server_command cmds[] = {' >>$@
- ./command_util.sh array < $< >>$@
- echo '{.name = NULL}};' >> $@
-mysql_selector_command_list.h: mysql_selector.cmd
- echo 'extern struct server_command cmds[];' > $@
- ./command_util.sh proto < $< >> $@
-
-random_selector_command_list.c: random_selector.cmd random_selector_command_list.h
- echo '#include "server.h"' > $@
- echo '#include "user_list.h"' >> $@
- echo '#include "random_selector_command_list.h"' >> $@
- echo 'struct server_command random_selector_cmds[] = {' >>$@
- ./command_util.sh array < $< >>$@
- echo '{.name = NULL}};' >> $@
-random_selector_command_list.h: random_selector.cmd
- echo 'extern struct server_command random_selector_cmds[];' > $@
- ./command_util.sh proto < $< >> $@
-
-ortp_recv.o: ortp_recv.c
- $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ortp_cppflags@ $<
-
-ortp_send.o: ortp_send.c
- $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ortp_cppflags@ $<
-
-oggdec.o: oggdec.c