Rev 1850 | Rev 1853 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1739 | helixhorne | 1 | |
2 | ## source/jaudiolib/Makefile |
||
3 | |||
4 | |||
5 | PRETTY_OUTPUT ?= 1 |
||
1791 | helixhorne | 6 | |
1739 | helixhorne | 7 | |
8 | # Makefiles. Should be set to an absolute path since this Makefile is included |
||
9 | # at different directory levels |
||
10 | DXROOT_OVERRIDE:= |
||
11 | |||
12 | |||
13 | # USE_OPENGL - enables basic OpenGL Polymost renderer |
||
1820 | terminx | 14 | # POLYMER - enables fancy Polymer renderer |
15 | # NOASM - disables the use of inline assembly pragmas |
||
1739 | helixhorne | 16 | # LINKED_GTK - enables compile-time linkage to GTK |
17 | # |
||
18 | POLYMER = 1 |
||
19 | USE_OPENGL = 1 |
||
20 | NOASM = 0 |
||
21 | LINKED_GTK = 0 |
||
22 | BUILD32_ON_64 = 0 |
||
23 | # DO NOT SET THIS TO 1 AND COMMIT IT. |
||
1850 | terminx | 24 | NEDMALLOC = 0 |
25 | USE_LIBPNG = 0 |
||
1852 | helixhorne | 26 | |
1739 | helixhorne | 27 | |
28 | POLYMER = 0 |
||
29 | endif |
||
30 | |||
31 | |||
32 | |||
33 | # RELEASE - 1 = no debugging |
||
34 | # DEBUGANYWAY - 1 = include debug symbols even when generating release code |
||
35 | # KRANDDEBUG - 1 = include logging of krand() calls for debugging the demo system |
||
36 | # EFENCE - 1 = compile with Electric Fence for malloc() debugging |
||
37 | # OPTLEVEL - 0..3 = GCC optimization strategy |
||
38 | # |
||
39 | RELEASE?=1 |
||
40 | DEBUGANYWAY?=0 |
||
41 | KRANDDEBUG?=0 |
||
42 | EFENCE?=0 |
||
43 | OPTLEVEL?=2 |
||
44 | PROFILER?=0 |
||
45 | MUDFLAP?=0 |
||
1850 | terminx | 46 | MUDFLAP=0 |
1852 | helixhorne | 47 | |
1739 | helixhorne | 48 | |
49 | RELEASE=0 |
||
50 | endif |
||
51 | ifneq (0,$(PROFILER)) |
||
52 | DEBUGANYWAY=1 |
||
53 | endif |
||
54 | |||
55 | |||
56 | |||
57 | CC=gcc |
||
58 | CXX=g++ |
||
59 | AS=nasm |
||
60 | AR=ar |
||
61 | RC=windres |
||
62 | RANLIB=ranlib |
||
63 | STRIP=strip |
||
64 | |||
65 | |||
66 | LIBS=-lm |
||
67 | ifneq (0,$(USE_LIBPNG)) |
||
1852 | helixhorne | 68 | LIBS+= -lpng |
69 | endif |
||
70 | |||
71 | |||
1739 | helixhorne | 72 | # Debugging disabled |
73 | debug=-fomit-frame-pointer -funswitch-loops -O$(OPTLEVEL) |
||
74 | else |
||
75 | # Debugging enabled |
||
76 | debug=-ggdb -O0 -DDEBUGGINGAIDS |
||
77 | ifeq ($(PLATFORM),LINUX) |
||
1770 | plagman | 78 | LIBS+=-rdynamic |
79 | endif |
||
80 | ifneq (0,$(MUDFLAP)) |
||
1850 | terminx | 81 | LIBS+= -lmudflapth |
82 | debug+= -fmudflapth |
||
83 | endif |
||
84 | ifneq (0,$(PROFILER)) |
||
1739 | helixhorne | 85 | LIBS+= -lprofiler |
86 | debug+= -pg |
||
87 | endif |
||
88 | ifneq (0,$(KRANDDEBUG)) |
||
89 | debug+=-DKRANDDEBUG=1 |
||
90 | endif |
||
91 | ifneq (0,$(MUDFLAP)) |
||
1852 | helixhorne | 92 | debug+=-fmudflap -fmudflapth -funwind-tables |
93 | endif |
||
94 | endif |
||
1739 | helixhorne | 95 | ifneq (0,$(DEBUGANYWAY)) |
96 | debug+=-ggdb |
||
97 | endif |
||
98 | |||
99 | |||
1791 | helixhorne | 100 | W_NO_UNUSED_RESULT := $(findstring -Wno-unused-result,$(W_NO_UNUSED_RESULT)) |
1792 | helixhorne | 101 | |
1791 | helixhorne | 102 | |
1739 | helixhorne | 103 | -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -D_FORTIFY_SOURCE=2 \ |
104 | $(F_JUMP_TABLES) $(W_NO_UNUSED_RESULT) \ |
||
1852 | helixhorne | 105 | -Wextra -Wstrict-overflow=1 #-Wwrite-strings -Waddress -Wlogical-op |
106 | ifneq (0,$(USE_LIBPNG)) |
||
107 | BASECFLAGS+= -DUSE_LIBPNG |
||
108 | endif |
||
109 | |||
1739 | helixhorne | 110 | |
111 | BASEASFLAGS=-s #-g |
||
112 | |||
113 | |||
114 | |||
115 | EROOT:=build |
||
116 | |||
117 | |||
118 | EXESUFFIX= |
||
119 |