-
Notifications
You must be signed in to change notification settings - Fork 55
/
Makefile.config
69 lines (56 loc) · 2.05 KB
/
Makefile.config
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#=========================================================================
# Gamma Make configuration
#=========================================================================
LIB_NAME = Gamma
include Makefile.common
#=========================================================================
# Customize to fit your system
#=========================================================================
#-------------------------------------------------------------------------
# Default variables (may be overridden in platform specific section)
#-------------------------------------------------------------------------
INC_DIR = Gamma/
SRC_DIR = src/
TEST_DIR = tests/
EXAM_DIR = examples/
LIB_DIRS =
INC_DIRS = ./
#=========================================================================
# DO NOT EDIT BELOW!
#=========================================================================
#-------------------------------------------------------------------------
# Platform specific flags
#-------------------------------------------------------------------------
EXT_LIB_COPY_DIR =
ifeq ($(PLATFORM), linux)
INC_DIRS += /usr/include $(PREFIX)include/
LINK_LDFLAGS += -L$(PREFIX)lib/
LINK_LDFLAGS += -lrt -lpthread
ifneq ($(NO_AUDIO_IO), 1)
LINK_LDFLAGS += -lportaudio -lasound
endif
else ifeq ($(PLATFORM), macosx)
INC_DIRS += ./external/include/
LDFLAGS += -Lexternal/lib_osx/
ifneq ($(NO_AUDIO_IO), 1)
LINK_LDFLAGS += $(addprefix -framework , AudioUnit AudioToolbox CoreAudio Carbon)
LINK_LDFLAGS += -lportaudio
endif
else ifeq ($(PLATFORM), windows)
ifneq ($(NO_AUDIO_IO), 1)
LINK_LDFLAGS += -lportaudio
endif
endif
# Same for all platforms
ifeq ($(USE_LIBSNDFILE), 1)
LINK_LDFLAGS += -lsndfile
CPPFLAGS += -DGAM_USE_LIBSNDFILE
endif
ifneq ($(NO_AUDIO_IO), 1)
else
CPPFLAGS += -DGAM_NO_AUDIO_IO
endif
#-------------------------------------------------------------------------
# Final (dependent) variable definitions
#-------------------------------------------------------------------------
VPATH = $(SRC_DIR) $(addprefix $(SRC_DIR), $(TEST_DIR) $(EXAM_DIR))