diff --git GNUmakefile GNUmakefile
index de61e61..354549f 100644
|
|
MAKEFLAGS += -Rr |
4 | 4 | uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') |
5 | 5 | uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not') |
6 | 6 | |
7 | | prefix := /usr/local |
| 7 | prefix := @@PREFIX@@ |
8 | 8 | bindir := $(prefix)/bin |
9 | 9 | |
10 | 10 | ifneq ($(findstring MINGW,$(uname_S)),) |
… |
… |
ifneq ($(findstring CYGWIN,$(uname_S)),) |
72 | 72 | LDFLAGS += -lwinmm |
73 | 73 | endif |
74 | 74 | |
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 |
78 | 78 | |
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,-F/System/Library/PrivateFrameworks -Wl,-framework,CHUD |
| 83 | # endif |
| 84 | # endif |
85 | 85 | |
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 |
90 | 90 | |
91 | 91 | ifeq (,$(findstring clean,$(MAKECMDGOALS))) |
92 | 92 | DEPS := $(shell ls $(OBJECTS:.o=.d) 2>/dev/null) |
… |
… |
endif |
99 | 99 | .PHONY: all depend clean distclean install |
100 | 100 | |
101 | 101 | install: $(BINARY) |
102 | | install -D -m0755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY) |
| 102 | install -m0755 $(BINARY) $(DESTDIR)$(bindir)/$(BINARY) |
103 | 103 | |
104 | 104 | depend: $(DEPS) |
105 | 105 | |