X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=Makefile.in;h=05d7b3e016942b128c11a7397455b74376df6873;hp=05af6da8e58588ef842cc3549e7d8bd8e67f7ca6;hb=8b0ab0837ecdd5d28c7b6f31a605552f6942ca64;hpb=d98ffb5085c0fdce6bb9130e3785cd7a35ea86f7 diff --git a/Makefile.in b/Makefile.in index 05af6da8..05d7b3e0 100644 --- a/Makefile.in +++ b/Makefile.in @@ -5,14 +5,15 @@ BINDIR := @bindir@ VARDIR := /var/paraslash PKGDATADIR := @datarootdir@/@PACKAGE_NAME@ MANDIR := @datarootdir@/man/man1 - +PACKAGE_VERSION := @PACKAGE_VERSION@ +PACKAGE_STRING := @PACKAGE_STRING@ install_sh := @install_sh@ build_date := $(shell date) uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS") uname_rs := $(shell uname -rs) cc_version := $(shell $(CC) --version | head -n 1) -codename := axiomatic perspectivity +codename := simultaneous independence DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W DEBUG_CPPFLAGS += -Wredundant-decls @@ -23,6 +24,7 @@ DEBUG_CPPFLAGS += -Wredundant-decls # invalid option for gcc-3.3.3 # DEBUG_CPPFLAGS += -Wextra # DEBUG_CPPFLAGS += -Wold-style-definition +# DEBUG_CPPFLAGS += -Wdeclaration-after-statement # many warnings about trivial stuff # CPPFLAGS += -Wconversion @@ -45,27 +47,37 @@ CPPFLAGS += -DCODENAME='"$(codename)"' CPPFLAGS += -DCC_VERSION='"$(cc_version)"' CPPFLAGS += -Werror-implicit-function-declaration CPPFLAGS += -Wmissing-format-attribute +CPPFLAGS += -Wmissing-noreturn CPPFLAGS += -Wunused-macros CPPFLAGS += -Wbad-function-cast +CPPFLAGS += -fno-strict-aliasing CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F) CPPFLAGS += @SSL_CPPFLAGS@ CPPFLAGS += @ncurses_cppflags@ CPPFLAGS += @arch_cppflags@ +CPPFLAGS += -I/usr/local/include BINARIES = para_server para_client para_audioc para_recv \ - para_filter para_write para_fsck para_afh @extra_binaries@ + para_filter para_write para_afh @extra_binaries@ man_binaries := $(BINARIES) man_pages := $(patsubst %, man/man1/%.1, $(man_binaries)) man_pages_in := $(patsubst %, web/%.man.in.html, $(man_binaries)) -gengetopts := $(wildcard *.ggo) -gengetopts_c := $(gengetopts:.ggo=.cmdline.c) -gengetopts_h := $(gengetopts:.ggo=.cmdline.h) + +ggo_dir := ggo + +m4_ggos := afh audioc audiod client filter gui recv server write +all_ggos := $(m4_ggos) dccp_recv oggdec_filter alsa_write oss_write fade http_recv \ + osx_write udp_recv amp_filter compress_filter file_write \ + mp3dec_filter +ggo_generated := $(addsuffix .cmdline.c, $(all_ggos)) $(addsuffix .cmdline.h, $(all_ggos)) \ + $(addsuffix .ggo, $(addprefix $(ggo_dir)/,$(m4_ggos))) + autocrap := config.h.in configure -tarball_pfx := @PACKAGE_TARNAME@-@PACKAGE_VERSION@ +tarball_pfx := @PACKAGE_TARNAME@-$(PACKAGE_VERSION) tarball_delete = web versions pics .changelog_before_cvs .changelog_cvs .gitignore tarball_delete := $(patsubst %,$(tarball_pfx)/%,$(tarball_delete)) -tarball_add := $(gengetopts_c) $(gengetopts_h) $(autocrap) -tarball := @PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2 +tarball_add := $(ggo_generated) $(autocrap) +tarball := @PACKAGE_TARNAME@-$(PACKAGE_VERSION).tar.bz2 .PHONY: clean distclean maintainer-clean install man tarball all: $(BINARIES) $(man_pages) @@ -75,54 +87,7 @@ tarball: $(tarball) *.o: para.h config.h gcc-compat.h include Makefile.deps - -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";; \ - fsck.ggo) O="--unamed-opts=table";; \ - afh.ggo) O="--unamed-opts=audio_file";; \ - esac; \ - if test $< != fsck.ggo; then O="$$O --conf-parser "; fi; \ - gengetopt $$O \ - --no-handle-version \ - --file-name=$(*F).cmdline \ - --func-name $(*F)_cmdline_parser \ - --arg-struct-name=$(*F)_args_info \ - --set-package="para_$(subst .cmdline,,$(*F))" \ - --set-version="@PACKAGE_VERSION@" < $< +include $(ggo_dir)/makefile %_command_list.c %_command_list.h: %.cmd ./command_util.sh c < $< >$@ @@ -143,7 +108,7 @@ man/man1/para_audiod.1: para_audiod audiod_command_list.man man/man1/%.1: % mkdir -p man/man1 - help2man -N ./$< > $@ + help2man -h --detailed-help -N ./$< > $@ man/html/%.html: man/man1/%.1 mkdir -p man/html @@ -153,21 +118,15 @@ web/%.man.in.html: man/man1/%.1 man2html $< | sed -e '/^<\/BODY>/,$$d' -e '1,/<\/HEAD>/d' > $@ -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 +oggdec_filter.o: oggdec_filter.c $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @oggvorbis_cppflags@ $< ogg_afh.o: ogg_afh.c $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @oggvorbis_cppflags@ $< -mp3dec.o: mp3dec.c +mp3dec_filter.o: mp3dec_filter.c $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @mad_cppflags@ $< -aacdec.o: aacdec.c +aacdec_filter.o: aacdec_filter.c $(CC) -c $(CPPFLAGS) $(DEBUG_CPPFLAGS) @faad_cppflags@ $< aac_common.o: aac_common.c @@ -201,14 +160,11 @@ para_audioc: @audioc_objs@ $(CC) $(LDFLAGS) -o $@ @audioc_objs@ @audioc_ldflags@ para_fade: @fade_objs@ - $(CC) $(LDFLAGS) -o $@ @fade_objs@ + $(CC) $(LDFLAGS) -o $@ @fade_objs@ @fade_ldflags@ para_server: @server_objs@ $(CC) $(LDFLAGS) -o $@ @server_objs@ @server_ldflags@ -para_fsck: @fsck_objs@ - $(CC) $(LDFLAGS) -o $@ @fsck_objs@ @fsck_ldflags@ - para_write: @write_objs@ $(CC) $(LDFLAGS) -o $@ @write_objs@ @write_ldflags@ @@ -217,6 +173,7 @@ para_afh: @afh_objs@ clean: rm -f *.o $(BINARIES) + rm -f *_command_list.* rm -rf man distclean: clean rm -f Makefile autoscan.log config.status config.log && \ @@ -224,10 +181,9 @@ distclean: clean rm -f GPATH GRTAGS GSYMS GTAGS maintainer-clean: distclean - rm -f $(gengetopts_c) $(gengetopts_h) *.tar.bz2 \ + rm -f $(ggo_generated) *.tar.bz2 \ config.h configure \ config.h.in skencil/*.pdf skencil/*.ps - rm -f *_command_list.* *.man man/man1/* rm -rf web_sync install: all man @@ -236,7 +192,7 @@ install: all man $(install_sh) -m 644 $(man_pages) $(MANDIR) mkdir -p $(VARDIR) >/dev/null 2>&1 || true # not fatal, so don't complain -@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.bz2: $(tarball_add) +@PACKAGE_TARNAME@-$(PACKAGE_VERSION).tar.bz2: $(tarball_add) rm -rf $(tarball_pfx).tar.bz2 $(tarball_pfx) git archive --format=tar --prefix=$(tarball_pfx)/ HEAD \ | tar --delete $(tarball_delete) > $(tarball_pfx).tar