-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig
27 lines (22 loc) · 792 Bytes
/
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
# Installation directories
# System's libraries directory (where binary libraries are installed)
LUA_LIBDIR= /usr/lib64/lua/5.1
# Lua include directory
LUA_INC=-I/usr/include/lua-5.1 # Fedora
LUA_INC+=-I/usr/include/lua5.1 # Ubuntu
# OS dependent
# for Linux
LIB_OPTION= -shared
DEFS= -D__LINUX_ALSASEQ__
LIBRARY= -lpthread -lasound
# for MacOS X
# LIB_OPTION= -bundle -undefined dynamic_lookup
# DEFS= -D__MACOSX_CORE__
# LIBRARY= -framework CoreMIDI -framework CoreFoundation -framework CoreAudio
LIBNAME= $T.so.$V
# Compilation directives
WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
INCS= -I$(LUA_INC) -Irtmidi
CFLAGS= $(WARN) $(INCS) -fPIC
OCFLAGS= -O2 -Wall $(INCS) -fPIC
CC= g++