]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - Makefile.in
make audiod use command_util.sh
[paraslash.git] / Makefile.in
index 45dc04182cb33fe585d3be15241dd335f85cb830..2a803f3bcd217f5cbac2780fc3ab1f8be4426b85 100644 (file)
@@ -170,6 +170,41 @@ 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 < $< >> $@
+
+playlist_selector_command_list.c: playlist_selector.cmd playlist_selector_command_list.h
+       echo '#include "server.h"' > $@
+       echo '#include "user_list.h"' >> $@
+       echo '#include "playlist_selector_command_list.h"' >> $@
+       echo 'struct server_command playlist_selector_cmds[] = {' >>$@
+       ./command_util.sh array < $< >>$@
+       echo '{.name = NULL}};' >> $@
+playlist_selector_command_list.h: playlist_selector.cmd
+       echo 'extern struct server_command playlist_selector_cmds[];' > $@
+       ./command_util.sh proto < $< >> $@
+
+audiod_command_list.c: audiod.cmd audiod_command_list.h
+       echo '#include "list.h"' > $@
+       echo '#include "para.h"' >> $@
+       echo '#include "sched.h"' >> $@
+       echo '#include "audiod.h"' >> $@
+       echo '#include "audiod_command_list.h"' >> $@
+       echo 'struct audiod_command cmds[] = {' >>$@
+       ./command_util.sh array < $< >>$@
+       echo '{.name = NULL}};' >> $@
+audiod_command_list.h: audiod.cmd
+       echo 'extern struct audiod_command cmds[];' > $@
+       ./command_util.sh proto < $< >> $@
+
 ortp_recv.o: ortp_recv.c
        $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ortp_cppflags@ $<