aboutsummaryrefslogtreecommitdiffstats
path: root/audio/dumb/files/patch-Makefile
blob: ef6504759578de62b822ec15a5de0d2a14e2266f (plain) (blame)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
--- Makefile.orig   2005-08-08 04:18:41.000000000 +0400
+++ Makefile    2008-06-12 06:27:26.000000000 +0400
@@ -22,7 +22,7 @@
 #                    (Note that this is unable to delete the dumbask
 #                    executable if the configuration is absent.)
 
-MAKEFILE = Makefile.rdy
+MAKEFILE = Makefile
 
 .PHONY: all install uninstall clean veryclean distclean config config-if-necessary make-outdirs
 
@@ -36,12 +36,12 @@
 COMMA := ,
 
 ifdef USE_ICC
-CC := icc
+CC ?= icc
 else
 ifdef USE_SGICC
-CC := cc
+CC ?= cc
 else
-CC := gcc
+CC ?= gcc
 endif
 endif
 AR := ar
@@ -215,24 +215,21 @@
 ifdef USE_ICC
 WFLAGS := -Wall -DDUMB_DECLARE_DEPRECATED
 WFLAGS_ALLEGRO :=
-OFLAGS := -O2
-DBGFLAGS := -DDEBUGMODE=1
+OFLAGS=$(CFLAGS)
 else
 ifdef USE_SGICC
 WFLAGS := -fullwarn -DDUMB_DECLARE_DEPRECATED
 WFLAGS_ALLEGRO :=
-OFLAGS := -n32 -O2 -use_readonly_const
-DBGFLAGS := -n32 -g3 -DDEBUGMODE=1
+OFLAGS=$(CFLAGS)
 else
 WFLAGS := -Wall -W -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -DDUMB_DECLARE_DEPRECATED
 WFLAGS_ALLEGRO := -Wno-missing-declarations
-OFLAGS := -O2 -ffast-math -fomit-frame-pointer
-DBGFLAGS := -DDEBUGMODE=1 -g3
+OFLAGS=$(CFLAGS)
 endif
 endif
 
-CFLAGS_RELEASE := -Iinclude $(WFLAGS) $(OFLAGS)
-CFLAGS_DEBUG := -Iinclude $(WFLAGS) $(DBGFLAGS)
+CFLAGS_RELEASE := -Iinclude -I$(PREFIX)/include $(_PORT_ALLEGRO_CFLAGS) $(WFLAGS) $(OFLAGS) 
+CFLAGS_DEBUG := -Iinclude -I$(PREFIX)/include $(_PORT_ALLEGRO_CFLAGS) $(WFLAGS) $(DBGFLAGS)
 
 LDFLAGS := -s
 
@@ -251,8 +248,8 @@
 ALLEGRO_LIB_FILE_DEBUG := $(LIBDIR)/libaldmd.a
 
 
-core: $(CORE_LIB_FILE_RELEASE) $(CORE_LIB_FILE_DEBUG)
-allegro: $(ALLEGRO_LIB_FILE_RELEASE) $(ALLEGRO_LIB_FILE_DEBUG)
+core: $(CORE_LIB_FILE_RELEASE)
+allegro: $(ALLEGRO_LIB_FILE_RELEASE)
 
 core-examples: $(CORE_EXAMPLES_EXE)
 allegro-examples: $(ALLEGRO_EXAMPLES_EXE)
@@ -263,11 +260,9 @@
 
 install-core: core
    $(call COPY,$(CORE_LIB_FILE_RELEASE),$(LIB_INSTALL_PATH))
-   $(call COPY,$(CORE_LIB_FILE_DEBUG),$(LIB_INSTALL_PATH))
 
 install-allegro: allegro
    $(call COPY,$(ALLEGRO_LIB_FILE_RELEASE),$(LIB_INSTALL_PATH))
-   $(call COPY,$(ALLEGRO_LIB_FILE_DEBUG),$(LIB_INSTALL_PATH))
 
 ifeq "$(COMSPEC)" ""
 install-core-examples: core-examples
@@ -321,12 +316,6 @@
 ALLEGRO_LIB_FILE := $(LIBDIR)/libaldmb.a
 include make/Makefile.inc
 
-OBJDIR := $(OBJDIR_BASE)/debug
-CFLAGS := $(CFLAGS_DEBUG)
-CORE_LIB_FILE := $(LIBDIR)/libdumbd.a
-ALLEGRO_LIB_FILE := $(LIBDIR)/libaldmd.a
-include make/Makefile.inc
-
 
 $(CORE_EXAMPLES_EXE): examples/%$(EXE_SUFFIX): examples/%.o $(CORE_LIB_FILE_RELEASE)
    $(CC) $^ -o $@ $(LDFLAGS) $(LINK_MATH)