blob: cdd8ccf0f40d342d1b936e5cc48011dfb6b19be8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
--- a/Makerules
+++ b/Makerules
@@ -117,11 +117,11 @@ ifeq ($(OS),MINGW)
else ifeq ($(OS),MACOS)
HAVE_GLUT := yes
SYS_GLUT_CFLAGS := -Wno-deprecated-declarations
- SYS_GLUT_LIBS := -framework GLUT -framework OpenGL
- CC = xcrun cc
- AR = xcrun ar
- LD = xcrun ld
- RANLIB = xcrun ranlib
+ SYS_GLUT_LIBS ?= -framework GLUT -framework OpenGL
+ CC ?= xcrun cc
+ AR ?= xcrun ar
+ LD ?= xcrun ld
+ RANLIB ?= xcrun ranlib
else ifeq ($(OS),Linux)
HAVE_OBJCOPY := yes
--- a/Makerules
+++ b/Makerules
@@ -122,9 +122,7 @@ else ifeq ($(OS),MACOS)
AR ?= xcrun ar
LD ?= xcrun ld
RANLIB ?= xcrun ranlib
-
-else ifeq ($(OS),Linux)
- HAVE_OBJCOPY := yes
+endif
ifeq ($(shell $(PKG_CONFIG) --exists freetype2 && echo yes),yes)
SYS_FREETYPE_CFLAGS := $(shell $(PKG_CONFIG) --cflags freetype2)
@@ -197,8 +195,6 @@ else ifeq ($(OS),Linux)
PTHREAD_LIBS := -lpthread
endif
-endif
-
# The following section has various cross compilation configurations.
#
# Invoke these as:
|