Ticket #52741: patch-makefile.diff

File patch-makefile.diff, 1.6 KB (added by RJVB (René Bertin), 8 years ago)
  • GNUmakefile

    diff --git GNUmakefile GNUmakefile
    index de61e61..354549f 100644
    MAKEFLAGS += -Rr 
    44uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
    55uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
    66
    7 prefix := /usr/local
     7prefix := @@PREFIX@@
    88bindir := $(prefix)/bin
    99
    1010ifneq ($(findstring MINGW,$(uname_S)),)
    ifneq ($(findstring CYGWIN,$(uname_S)),) 
    7272LDFLAGS += -lwinmm
    7373endif
    7474
    75 ifneq ($(shell $(CC) --version | grep Apple),)
    76 APPLE_COMPILER := YesPlease
    77 endif
     75# ifneq ($(shell $(CC) --version | grep Apple),)
     76# APPLE_COMPILER := YesPlease
     77# endif
    7878
    79 ifeq ($(uname_S),Darwin)
    80 ifneq ($(USE_CHUD),)
    81 CFLAGS += -m32 -pthread -mdynamic-no-pic -DUSE_CHUD
    82 LDFLAGS += -m32 -pthread -mdynamic-no-pic -Wl,-F/System/Library/PrivateFrameworks -Wl,-framework,CHUD
    83 endif
    84 endif
     79# ifeq ($(uname_S),Darwin)
     80# ifneq ($(USE_CHUD),)
     81# CFLAGS += -m32 -pthread -mdynamic-no-pic -DUSE_CHUD
     82# LDFLAGS += -m32 -pthread -mdynamic-no-pic -Wl,-read_only_relocs,suppress -Wl,-F/System/Library/PrivateFrameworks -Wl,-framework,CHUD
     83# endif
     84# endif
    8585
    86 ifdef NO_GNU_GETOPT
    87 CFLAGS += -Igetopt
    88 OBJECTS += getopt/getopt_long.o
    89 endif
     86# ifdef NO_GNU_GETOPT
     87# CFLAGS += -Igetopt
     88# OBJECTS += getopt/getopt_long.o
     89# endif
    9090
    9191ifeq (,$(findstring clean,$(MAKECMDGOALS)))
    9292DEPS := $(shell ls $(OBJECTS:.o=.d) 2>/dev/null)
    endif 
    9999.PHONY: all depend clean distclean install
    100100
    101101install: $(BINARY)
    102         install -D -m0755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY)
     102        install -m0755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY)
    103103
    104104depend: $(DEPS)
    105105