Subversion Repositories eduke32

Rev

Rev 4328 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1739 helixhorne 1
 
2
## source/jaudiolib/Makefile
3
4
 
4000 helixhorne 5
MAKEFILE_COMMON_DIR:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
6
3275 hendricks2 7
 
1739 helixhorne 8
PRETTY_OUTPUT ?= 1
1791 helixhorne 9
1739 helixhorne 10
 
3096 hendricks2 11
CROSS=
3972 hendricks2 12
CC=$(CROSS)gcc
13
CXX=$(CROSS)g++
14
AS=$(CROSS)nasm
15
AR=$(CROSS)ar
16
RC=$(CROSS)windres
17
RANLIB=$(CROSS)ranlib
18
STRIP=$(CROSS)strip
19
3096 hendricks2 20
 
3122 hendricks2 21
L_CXX=$(CXX)
22
23
 
3096 hendricks2 24
25
 
26
    CC=clang -x c -std=gnu89
3116 hendricks2 27
    CXX=clang -x c++
28
    L_CC=clang -std=gnu89
3122 hendricks2 29
    L_CXX=clang
30
endif
3096 hendricks2 31
32
 
3278 hendricks2 33
 
34
    ifeq ($(strip $(DEVKITPPC)),)
35
        $(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
36
    endif
37
38
 
39
40
 
41
    STRIP=powerpc-eabi-strip
42
endif
43
44
 
3096 hendricks2 45
ifndef GCC_MAJOR
3278 hendricks2 46
    GCC_MAJOR    := $(shell $(CC) -dumpversion 2>&1 | cut -d'.' -f1)
47
endif
48
ifeq ($(GCC_MAJOR),)
49
    GCC_MAJOR    := 4
50
endif
51
ifndef GCC_MINOR
52
    GCC_MINOR    := $(shell $(CC) -dumpversion 2>&1 | cut -d'.' -f2)
53
endif
54
ifeq ($(GCC_MINOR),)
55
    GCC_MINOR    := 7
56
endif
57
3096 hendricks2 58
 
59
ifndef SYSARCH
3278 hendricks2 60
    SYSARCH:=$(strip $(shell uname -m))
61
endif
62
3096 hendricks2 63
 
64
# the outside world. This allows cross-compilation by overriding
65
# CC and giving us PLATFORM specifically.
66
#
67
ifndef PLATFORM
68
    uname:=$(strip $(shell uname -s))
3278 hendricks2 69
    PLATFORM=UNKNOWN
3096 hendricks2 70
    ifeq ($(findstring Linux,$(uname)),Linux)
71
        PLATFORM=LINUX
72
    endif
73
    ifeq ($(findstring BSD,$(uname)),BSD)
74
        PLATFORM=BSD
75
    endif
76
    ifeq ($(findstring MINGW,$(uname)),MINGW)
77
        PLATFORM=WINDOWS
78
    endif
79
    ifeq ($(findstring Darwin,$(uname)),Darwin)
80
        PLATFORM=DARWIN
81
    endif
82
    ifeq ($(findstring BeOS,$(uname)),BeOS)
83
        PLATFORM=BEOS
84
    endif
85
    ifeq ($(findstring skyos,$(uname)),skyos)
86
        PLATFORM=SKYOS
87
    endif
88
    ifeq ($(findstring QNX,$(uname)),QNX)
89
        PLATFORM=QNX
90
    endif
91
    ifeq ($(findstring SunOS,$(uname)),SunOS)
92
        PLATFORM=SUNOS
93
    endif
94
    ifeq ($(findstring syllable,$(uname)),syllable)
95
        PLATFORM=SYLLABLE
96
    endif
97
endif
98
99
 
3272 hendricks2 100
    SUBPLATFORM=
101
    ifeq ($(PLATFORM),LINUX)
102
        SUBPLATFORM=LINUX
103
    endif
104
    ifeq ($(PLATFORM),DINGOO)
105
        SUBPLATFORM=LINUX
106
        CROSS=mipsel-linux-
3972 hendricks2 107
    endif
3272 hendricks2 108
    ifeq ($(PLATFORM),GCW)
109
        SUBPLATFORM=LINUX
110
        CROSS=mipsel-linux-
3972 hendricks2 111
    endif
3272 hendricks2 112
    ifeq ($(PLATFORM),CAANOO)
113
        SUBPLATFORM=LINUX
114
    endif
115
endif
116
117
 
4343 hendricks2 118
ifeq (,$(VC_REV))
119
    VC_REV    := $(shell svn info 2>&1 | grep Revision | cut -d' ' -f2)
120
    VC_CLEAN  := svn revert
121
endif
122
ifeq (,$(VC_REV))
123
    VC_REV    := $(shell git svn info 2>&1 | grep Revision | cut -d' ' -f2)
124
    VC_CLEAN  := git checkout
125
endif
126
ifneq (,$(VC_REV))
127
    DO_REV    :=rev
128
    UNDO_REV  :=rev_clean
129
endif
130
3278 hendricks2 131
 
2476 hendricks2 132
EXESUFFIX_OVERRIDE ?=
133
134
 
4023 helixhorne 135
SYNTHESIS ?= 0
136
137
 
2398 hendricks2 138
# Like above, use absolute paths.
139
APPLE_FRAMEWORKS ?=/Library/Frameworks
140
# Without the resource files packaged in the .app bundle, the startupwindow produces errors, so give it an off switch.
3368 hendricks2 141
OSX_STARTUPWINDOW ?= 1
3278 hendricks2 142
2398 hendricks2 143
 
1739 helixhorne 144
#  USE_OPENGL     - enables basic OpenGL Polymost renderer
1820 terminx 145
#  POLYMER        - enables fancy Polymer renderer
146
#  NOASM          - disables the use of inline assembly pragmas
1739 helixhorne 147
#  LINKED_GTK     - enables compile-time linkage to GTK
148
#
149
POLYMER = 1
150
USE_OPENGL = 1
151
NOASM = 0
152
LINKED_GTK = 0
153
BUILD32_ON_64 ?= 0
1907 helixhorne 154
USE_LIBPNG ?= 1
2843 helixhorne 155
USE_LIBVPX ?= 1
2076 helixhorne 156
NETCODE ?= 1
3260 helixhorne 157
4107 helixhorne 158
 
3957 helixhorne 159
USE_LUAJIT_2_1 ?= 0
4107 helixhorne 160
1739 helixhorne 161
 
4066 helixhorne 162
USE_ASM64 ?= 0
163
164
 
1739 helixhorne 165
    POLYMER = 0
166
    USE_LIBVPX = 0
1933 helixhorne 167
endif
1739 helixhorne 168
169
 
170
#  CPLUSPLUS - 1 = enable C++ building
3116 hendricks2 171
#  RELEASE - 1 = no debugging
1739 helixhorne 172
#  DEBUGANYWAY - 1 = include debug symbols even when generating release code
173
#  DISABLEINLINING - 1 = compile inline functions as extern __fastcall instead of static inline
4247 hendricks2 174
#  FORCEWARNINGS - 1 = do not disable any compiler warnings within the source
3237 hendricks2 175
#  KRANDDEBUG - 1 = include logging of krand() calls for debugging the demo system
1739 helixhorne 176
#  EFENCE  - 1 = compile with Electric Fence for malloc() debugging
177
#  OPTLEVEL	- 0..3 = GCC optimization strategy
178
#  LTO - 1 = enable link-time optimization, for GCC 4.5 and up
1856 helixhorne 179
#
1739 helixhorne 180
CPLUSPLUS?=0
3116 hendricks2 181
RELEASE?=1
1739 helixhorne 182
DEBUGANYWAY?=0
183
KRANDDEBUG?=0
184
DISABLEINLINING?=0
3116 hendricks2 185
FORCEWARNINGS?=0
3237 hendricks2 186
EFENCE?=0
1739 helixhorne 187
DMALLOC?=0
2254 helixhorne 188
PROFILER?=0
1739 helixhorne 189
MUDFLAP?=0
1850 terminx 190
1739 helixhorne 191
 
4298 helixhorne 192
# allocache()-allocated memory accesses with e.g. Valgrind.
193
# For debugging with Valgrind + GDB, see
194
# http://valgrind.org/docs/manual/manual-core-adv.html#manual-core-adv.gdbserver
195
ALLOCACHE_AS_MALLOC?=0
196
197
 
3725 helixhorne 198
ifeq ($(RELEASE),0)
3728 Plagman 199
    OPTLEVEL?=0
3725 helixhorne 200
else
201
    OPTLEVEL?=2
202
endif
203
204
 
3422 helixhorne 205
    override STRIP=
3423 helixhorne 206
endif
3422 helixhorne 207
ifneq ($(DEBUGANYWAY),0)
208
    override STRIP=
3423 helixhorne 209
endif
3422 helixhorne 210
211
 
3957 helixhorne 212
    # FIXME: Lunatic builds with LTO don't start up properly as the required
213
    # symbol names are apparently not exported.
214
    override LTO=0
215
endif
216
217
 
3122 hendricks2 218
    LTO=1
219
    ifneq (0,$(CLANG))
220
        ifeq ($(PLATFORM), WINDOWS)
221
            LTO=0
222
        endif
223
    endif
224
endif
225
226
 
3278 hendricks2 227
    F_NO_STACK_PROTECTOR := -fno-stack-protector
3096 hendricks2 228
    # there are some link-time issues with stack protectors, so make it possible to override
229
    F_STACK_PROTECTOR_ALL ?= -fstack-protector-all
230
    ifeq (0,$(CLANG))
231
        F_JUMP_TABLES := -fjump-tables
232
    endif
233
    M_TUNE_GENERIC := -mtune=generic
234
    M_STACKREALIGN := -mstackrealign
235
    W_STRICT_OVERFLOW := -Wno-strict-overflow
3963 helixhorne 236
endif
3096 hendricks2 237
238
 
3278 hendricks2 239
    ifndef COMPILERTARGET
240
        COMPILERTARGET:=$(strip $(shell $(CC) -dumpmachine))
241
    endif
242
243
 
244
    ifeq ($(findstring x86_64,$(COMPILERTARGET)),x86_64)
245
        SYSARCH:=x86_64
246
        WINBITS=64
247
    endif
248
249
 
250
endif
251
252
 
3096 hendricks2 253
    ifndef DARWINVERSION
3278 hendricks2 254
        DARWINVERSION:=$(strip $(shell uname -r | cut -d . -f 1))
255
    endif
256
    ifeq (1,$(strip $(shell expr $(DARWINVERSION) \< 10)))
3096 hendricks2 257
        DARWIN9 ?= 1
258
    endif
259
260
 
3122 hendricks2 261
3096 hendricks2 262
 
263
        F_JUMP_TABLES :=
264
        W_STRICT_OVERFLOW :=
265
    endif
266
267
 
268
        BASECOMMONFLAGS += $(F_NO_STACK_PROTECTOR)
3122 hendricks2 269
    else
3096 hendricks2 270
        ifeq ($(findstring ppc,$(ARCH)),ppc)
271
            BASECOMMONFLAGS += $(F_NO_STACK_PROTECTOR)
3122 hendricks2 272
        endif
3096 hendricks2 273
    endif
274
    ifneq (0,$(OSX_STARTUPWINDOW))
3334 hendricks2 275
        BASECOMMONFLAGS+= -DOSX_STARTUPWINDOW
276
    endif
277
endif
3096 hendricks2 278
279
 
280
    ifeq ($(PLATFORM), WII)
281
        OPTOPT=
282
    else
283
        OPTOPTARCH=$(ARCH)
284
        ifeq (,$(OPTOPTARCH))
285
            OPTOPTARCH=$(SYSARCH)
286
        endif
287
288
 
289
            OPTOPT=-march=pentium3 $(M_TUNE_GENERIC) -mmmx
290
            # -msse2 -mfpmath=sse,387 -malign-double $(M_STACKREALIGN)
291
        else
292
            OPTOPT=
293
        endif
294
    endif
295
296
 
297
        OPTOPT+= $(CUSTOMOPT)
298
    endif
299
endif
300
301
 
1739 helixhorne 302
    RELEASE=0
303
endif
304
ifneq (0,$(PROFILER))
305
    DEBUGANYWAY=1
306
endif
307
308
 
309
 
310
 
311
BASECFLAGS=
3278 hendricks2 312
BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
3097 hendricks2 313
BASECXXFLAGS= -fno-exceptions -fno-rtti -Wno-write-strings
4273 hendricks2 314
BASEASFLAGS=-s #-g
2520 hendricks2 315
BASELDFLAGS=
316
317
 
3278 hendricks2 318
 
319
    ifeq (1,$(strip $(shell expr $(GCC_MINOR) \>= 1)))
320
        BASECFLAGS+= -Wno-attributes
321
    endif
322
endif
323
324
 
3691 helixhorne 325
ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4)))
326
    ifeq (1,$(strip $(shell expr $(GCC_MINOR) \>= 3)))
327
        BASECXXFLAGS+= -Wno-narrowing
328
    endif
329
endif
330
331
 
2685 hendricks2 332
    override USE_LIBVPX = 0
333
endif
334
ifeq ($(PLATFORM),GCW)
3972 hendricks2 335
    override USE_LIBVPX = 0
336
endif
337
ifeq ($(PLATFORM),DINGOO)
338
    override USE_LIBVPX = 0
339
endif
340
2685 hendricks2 341
 
3219 hendricks2 342
BASELIBDIRS=
3278 hendricks2 343
ifneq (0,$(USE_LIBVPX))
1933 helixhorne 344
    # On Windows, we link statically to libvpx
2038 helixhorne 345
    BASELIBS+= -lvpx
3219 hendricks2 346
endif
1933 helixhorne 347
1852 helixhorne 348
 
2292 helixhorne 349
 
350
    # debug build or DEBUGANYWAY=1 --> -g flag
351
    ifneq (0,$(CLANG))
2672 helixhorne 352
        debug=-g
2292 helixhorne 353
    else ifeq ($(PLATFORM), WII)
2685 hendricks2 354
        debug=-g
355
    else
2292 helixhorne 356
        debug=-ggdb
357
    endif
358
endif
359
360
 
3725 helixhorne 361
362
 
4298 helixhorne 363
    debug+= -DDEBUG_ALLOCACHE_AS_MALLOC
364
endif
365
366
 
4020 helixhorne 367
# for a list of possible UBSan options.
368
# Clang 3.2 does only supports -fsanitize=address for the AddressSanitizer
369
ifneq ($(PLATFORM),WINDOWS)
4315 hendricks2 370
    CLANG_DEBUG_FLAGS := -fsanitize=address -fsanitize=bounds,enum,float-cast-overflow,object-size
371
endif
372
4020 helixhorne 373
 
1739 helixhorne 374
    # Debugging disabled
375
    ifeq (0,$(CLANG))
2672 helixhorne 376
        debug+= -funswitch-loops
2292 helixhorne 377
        ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \< 4)))
3278 hendricks2 378
            LTO=0
379
        endif
380
        ifeq (1,$(strip $(shell expr $(GCC_MAJOR) = 4)))
381
            ifeq (1,$(strip $(shell expr $(GCC_MINOR) \< 6)))
382
                LTO=0
383
            endif
384
        endif
385
    endif
2182 helixhorne 386
    ifeq (0,$(DEBUGANYWAY))
2040 helixhorne 387
        debug+= -fomit-frame-pointer -DNDEBUG
2239 helixhorne 388
    else
3138 Plagman 389
        debug+= -DDEBUGGINGAIDS
390
    endif
2040 helixhorne 391
    ifneq (0,$(LTO))
1856 helixhorne 392
        BASELDFLAGS+= -flto
2520 hendricks2 393
        debug+= -DUSING_LTO -flto
2107 helixhorne 394
    endif
1856 helixhorne 395
else
1739 helixhorne 396
    # Debugging enabled
397
    ifeq (0,$(DEBUGANYWAY))
2270 helixhorne 398
        debug+= -DDEBUGGINGAIDS
399
    else
400
        debug+= -DDEBUGGINGAIDS=2
401
    endif
402
403
 
2672 helixhorne 404
        debug+= $(CLANG_DEBUG_FLAGS)
4020 helixhorne 405
    endif
2160 helixhorne 406
    ifeq ($(SUBPLATFORM),LINUX)
3272 hendricks2 407
        BASELIBS+=-rdynamic
3219 hendricks2 408
    endif
1770 plagman 409
    ifneq (0,$(MUDFLAP))
1850 terminx 410
        BASELIBS+= -lmudflapth
3219 hendricks2 411
        debug+= -fmudflapth
1850 terminx 412
    endif
413
    ifneq (0,$(PROFILER))
1739 helixhorne 414
        ifneq ($(PLATFORM),DARWIN)
3278 hendricks2 415
            BASELIBS+= -lprofiler
416
        endif
417
        debug+= -pg
1739 helixhorne 418
    endif
419
    ifneq (0,$(KRANDDEBUG))
420
        debug+=-DKRANDDEBUG=1
421
    endif
422
endif
423
424
 
3278 hendricks2 425
ifeq (0,$(CLANG))
2672 helixhorne 426
#    W_NO_UNUSED_RESULT := $(shell echo '' | $(CC) -E -Wno-unused-result - 2>/dev/null && echo -Wno-unused-result)
2972 hendricks2 427
#    W_NO_UNUSED_RESULT := $(findstring -Wno-unused-result,$(W_NO_UNUSED_RESULT))
428
    ifeq (1,$(strip $(shell expr $(GCC_MAJOR) \>= 4)))
3278 hendricks2 429
        ifeq (1,$(strip $(shell expr $(GCC_MINOR) \>= 4)))
430
            W_NO_UNUSED_RESULT := -Wno-unused-result
431
        endif
432
    endif
433
endif
2159 helixhorne 434
1791 helixhorne 435
 
3097 hendricks2 436
    -Wpointer-arith \
2797 helixhorne 437
    -Wextra \
438
    #-Wstrict-prototypes \
439
    #-Waggregate-return \
440
    #-Wwrite-strings \
441
    #-Wcast-qual -Wcast-align \
442
    #-Waddress -Wlogical-op
443
444
 
3122 hendricks2 445
	-funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 \
1739 helixhorne 446
	$(F_JUMP_TABLES) $(W_NO_UNUSED_RESULT) $(ARCH)
2797 helixhorne 447
ifneq (0,$(CLANG))
2672 helixhorne 448
    BASECOMMONFLAGS+= -Wno-unused-value -Wno-parentheses
3122 hendricks2 449
endif
2159 helixhorne 450
BASECOMMONFLAGS+= -Wno-char-subscripts
3496 hendricks2 451
2159 helixhorne 452
 
3260 helixhorne 453
    BASECOMMONFLAGS+= -DNETCODE_DISABLE
454
endif
455
3148 helixhorne 456
 
3260 helixhorne 457
 
3275 hendricks2 458
ifeq ($(PLATFORM),WINDOWS)
459
    BASELIBDIRS+= -L$(abspath $(MAKEFILE_COMMON_DIR)/platform/Windows/lib$(WINLIB))
4000 helixhorne 460
    BASECOMMONFLAGS+= -I$(abspath $(MAKEFILE_COMMON_DIR)/platform/Windows/include)
461
    BASELDFLAGS+= -static-libgcc
4076 hendricks2 462
endif
3275 hendricks2 463
ifeq ($(PLATFORM),DARWIN)
464
    # include port and brew
3278 hendricks2 465
    BASELIBDIRS+= -L$(abspath $(MAKEFILE_COMMON_DIR)/platform/Apple/lib) \
4000 helixhorne 466
        -L/opt/local/lib -L/usr/local/lib
3278 hendricks2 467
    BASECOMMONFLAGS+= -I$(abspath $(MAKEFILE_COMMON_DIR)/platform/Apple/include) \
4000 helixhorne 468
        -I/opt/local/include -I/sw/include -I/usr/local/include
3278 hendricks2 469
endif
3275 hendricks2 470
ifeq ($(PLATFORM),WII)
4102 hendricks2 471
    BASELIBDIRS+= -L$(abspath $(MAKEFILE_COMMON_DIR)/platform/Wii/lib)
472
    BASECOMMONFLAGS+= -I$(abspath $(MAKEFILE_COMMON_DIR)/platform/Wii/include)
473
endif
474
ifeq ($(PLATFORM),GCW)
3972 hendricks2 475
    BASECOMMONFLAGS += -D__OPENDINGUX__
476
endif
477
ifeq ($(PLATFORM),DINGOO)
478
    BASECOMMONFLAGS += -D__OPENDINGUX__
479
endif
480
3275 hendricks2 481
 
3957 helixhorne 482
# LuaJIT standalone interpreter executable:
483
LUAJIT:=luajit
4000 helixhorne 484
# Options to "luajit -b" for synthesis. Since it runs on Linux, we need to tell
4023 helixhorne 485
# the native LuaJIT to emit PE object files.
486
ifeq ($(PLATFORM),WINDOWS)
4319 hendricks2 487
    LUAJIT_BCOPTS := -o windows
488
    ifeq (32,$(WINBITS))
489
        LUAJIT_BCOPTS += -a x86
490
    endif
491
    ifeq (64,$(WINBITS))
492
        LUAJIT_BCOPTS += -a x64
493
    endif
494
endif
4023 helixhorne 495
3148 helixhorne 496
 
497
    # FIXME: Lunatic doesn't build with inlining because of wacky include
498
    # chains!
499
    override DISABLEINLINING=1
500
501
 
4286 helixhorne 502
        # FIXME: Lunatic C++ doesn't build because otherwise it doesn't find
503
        # INT32_MIN and the like.
504
        BASECFLAGS+= -D__STDC_LIMIT_MACROS
505
    endif
506
507
 
4000 helixhorne 508
    ifneq ($(USE_LUAJIT_2_1),0)
4107 helixhorne 509
        BASECOMMONFLAGS+= -DUSE_LUAJIT_2_1
510
    endif
511
3148 helixhorne 512
 
3785 helixhorne 513
    ifndef DEFS_BC_SIZE
514
        DEFS_BC_SIZE := $(shell $(LUAJIT) -bg -t h $(MAKEFILE_COMMON_DIR)/source/lunatic/defs.ilua -)
4000 helixhorne 515
        DEFS_BC_SIZE := $(word 3, $(DEFS_BC_SIZE))
3785 helixhorne 516
        # Pass it to the sub-makes, too.
4238 helixhorne 517
        export DEFS_BC_SIZE
3785 helixhorne 518
    endif
519
    # Determine size of defs_m32.ilua bytecode once.
4238 helixhorne 520
    ifndef DEFS_M32_BC_SIZE
521
        DEFS_M32_BC_SIZE := $(shell $(LUAJIT) -bg -t h $(MAKEFILE_COMMON_DIR)/source/lunatic/defs_m32.ilua -)
522
        DEFS_M32_BC_SIZE := $(word 3, $(DEFS_M32_BC_SIZE))
523
        export DEFS_M32_BC_SIZE
524
    endif
525
    BASECOMMONFLAGS+= -DLUNATIC_DEFS_BC_SIZE=$(DEFS_BC_SIZE) -DLUNATIC_DEFS_M32_BC_SIZE=$(DEFS_M32_BC_SIZE)
526
3517 helixhorne 527
 
3148 helixhorne 528
        BASELIBS+= -lluajit
3275 hendricks2 529
    else
3148 helixhorne 530
        BASELIBS+= -lluajit-5.1
3219 hendricks2 531
    endif
3148 helixhorne 532
endif
533
534
 
535
536
 
3116 hendricks2 537
    BASECOMMONFLAGS+= -DDISABLE_INLINING
3122 hendricks2 538
endif
3116 hendricks2 539
ifneq (0,$(FORCEWARNINGS))
3237 hendricks2 540
    BASECOMMONFLAGS+= -DFORCE_WARNINGS
541
endif
542
3116 hendricks2 543
 
3096 hendricks2 544
545
 
2718 helixhorne 546
ifdef EDUKE32_MY_DEVELOPER_ID
547
    BASECOMMONFLAGS+= -DMY_DEVELOPER_ID=$(EDUKE32_MY_DEVELOPER_ID)
3122 hendricks2 548
endif
2718 helixhorne 549
550
 
1852 helixhorne 551
    BASECOMMONFLAGS+= -DUSE_LIBPNG
3122 hendricks2 552
endif
1852 helixhorne 553
ifneq (0,$(USE_LIBVPX))
1933 helixhorne 554
    BASECOMMONFLAGS+= -DUSE_LIBVPX
3122 hendricks2 555
endif
1933 helixhorne 556
1739 helixhorne 557
 
2059 hendricks2 558
    BASELIBS+= -lefence
3219 hendricks2 559
    BASECOMMONFLAGS+= -DEFENCE
3122 hendricks2 560
endif
2059 hendricks2 561
ifneq (0,$(DMALLOC))
2254 helixhorne 562
    BASELIBS+= -ldmalloc
3219 hendricks2 563
    BASECOMMONFLAGS+= -DDMALLOC
3122 hendricks2 564
endif
2254 helixhorne 565
2059 hendricks2 566
 
1739 helixhorne 567
EROOT:=build
568
569
 
570
EXESUFFIX=
571