forked from fador/mineserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mk
39 lines (32 loc) · 751 Bytes
/
config.mk
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
OS = $(shell uname -s)
CXX = g++
LIBRARIES =
INC = -I. -I/usr/include -I/usr/local/include
CXXFLAGS = -O
LDFLAGS = -L/usr/local/lib -L/usr/lib
DEPDIR = .deps
BUILDDIR = .build
ARCHFLAGS =
BUILDFLAGS = -DFADOR_PLUGIN
ifeq ($(DEBUG), YES)
BUILDFLAGS += -DDEBUG -g -O0
endif
ifeq ($(PEDANTIC), YES)
BUILDFLAGS += -Wall -Werror -pedantic
endif
ifeq ($(findstring MINGW32,$(SYSTEM)),MINGW32)
LDFLAGS += -lws2_32 -lwinmm
endif
ifeq ($(OS),Linux)
LDFLAGS += -ldl
LIBNOISE=1
endif
ifeq ($(OS),FreeBSD)
LIBNOISE=0
LIBRARIES+=/usr/local/lib/libnoise.so.0
endif
# define for <libnoise/noise.h> vs <noise/noise.h>
# LIBNOISE=1
ifeq ($(LIBNOISE), 1)
BUILDFLAGS += -DLIBNOISE
endif