X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=Makefile.in;h=0af8cdddc27fa5800d694c8d3ed8982a8d77166e;hp=fee1bdef5f4797a702c9e9d2db6437cc78fe9cd5;hb=c73d23911d78ed10179c12ef8f79a3fcf3bbcdaf;hpb=b60fa2afaa5737c21ae96b44e82c965b75ad538e diff --git a/Makefile.in b/Makefile.in index fee1bdef..0af8cddd 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,17 +1,18 @@ -prefix = @prefix@ -exec_prefix = @exec_prefix@ +prefix := @prefix@ +exec_prefix := @exec_prefix@ -BINDIR = @bindir@ -VARDIR = /var/paraslash -PKGDATADIR = @datarootdir@/@PACKAGE_NAME@ -MANDIR = @datarootdir@/man/man1 +BINDIR := @bindir@ +VARDIR := /var/paraslash +PKGDATADIR := @datarootdir@/@PACKAGE_NAME@ +MANDIR := @datarootdir@/man/man1 -install_sh = @install_sh@ +install_sh := @install_sh@ -build_date = $(shell date) -system = $(shell uname -rs) -cc_version = $(shell $(CC) --version | head -n 1) -codename = solar saturation +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 := solar saturation DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W DEBUG_CPPFLAGS += -Wredundant-decls @@ -26,28 +27,30 @@ DEBUG_CPPFLAGS += -Wredundant-decls # many warnings about trivial stuff # CPPFLAGS += -Wconversion -LDFLAGS += -Wl,--gc-sections - +ifeq ($(uname_s),Linux) + CPPFLAGS += -fdata-sections -ffunction-sections + LDFLAGS += -Wl,--gc-sections + CPPFLAGS += -Wstrict-prototypes + CPPFLAGS += -Wshadow +endif CPPFLAGS += -Os CPPFLAGS += -Wall CPPFLAGS += -Wuninitialized -CPPFLAGS += -Wstrict-prototypes CPPFLAGS += -Wchar-subscripts CPPFLAGS += -Wformat-security CPPFLAGS += -DBINDIR='"$(BINDIR)"' CPPFLAGS += -DBUILD_DATE='"$(build_date)"' -CPPFLAGS += -DSYSTEM='"$(system)"' +CPPFLAGS += -DUNAME_RS='"$(uname_rs)"' CPPFLAGS += -DCODENAME='"$(codename)"' CPPFLAGS += -DCC_VERSION='"$(cc_version)"' CPPFLAGS += -Werror-implicit-function-declaration CPPFLAGS += -Wmissing-format-attribute CPPFLAGS += -Wunused-macros -CPPFLAGS += -Wshadow CPPFLAGS += -Wbad-function-cast -CPPFLAGS += -fdata-sections -ffunction-sections CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F) CPPFLAGS += @SSL_CPPFLAGS@ CPPFLAGS += @ncurses_cppflags@ +CPPFLAGS += @arch_cppflags@ BINARIES = para_server para_client para_audioc para_recv \ para_filter para_write para_fsck @extra_binaries@ @@ -69,8 +72,8 @@ all: $(BINARIES) man: $(man_pages) tarball: $(tarball) -fade_objs = fade.cmdline.o fade.o exec.o close_on_fork.o string.o fd.o -fsck_objs = osl.o rbtree.o fsck.o string.o sha1.o fsck.cmdline.o +fade_objs := fade.cmdline.o fade.o exec.o close_on_fork.o string.o fd.o +fsck_objs := osl.o rbtree.o fsck.o string.o sha1.o fsck.cmdline.o *.o: para.h config.h gcc-compat.h @@ -222,8 +225,8 @@ maintainer-clean: distclean rm -f $(gengetopts_c) $(gengetopts_h) *.tar.bz2 \ config.h configure \ config.h.in skencil/*.pdf skencil/*.ps - rm -f *_command_list.* *.man man/man1/* web_sync - + rm -f *_command_list.* *.man man/man1/* + rm -rf web_sync install: all man mkdir -p $(BINDIR) $(MANDIR) @@ -244,3 +247,8 @@ install: all man bzip2 -9 $(tarball_pfx).tar rm -f $(tarball_pfx).tar ls -l $(tarball_pfx).tar.bz2 +%.ps: %.sk + sk2ps $< > $@ +%.pdf: %.ps + ps2pdf - - < $< > $@ +