File: cflags.patch

package info (click to toggle)
sameboy 1.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,528 kB
  • sloc: ansic: 29,948; objc: 22,249; asm: 1,424; pascal: 1,373; makefile: 1,065; xml: 111
file content (32 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download
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
Description: use exported CFLAGS & CPPFLAGS
Forwarded: no
Author: Sébastien Noel <sebastien@twolife.be>
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@
 
 # Set target, configuration, version and destination folders
 
+CFLAGS += $(CPPFLAGS)
+
 PLATFORM := $(shell uname -s)
 ifneq ($(findstring MINGW,$(PLATFORM)),)
 PLATFORM := windows32
@@ -764,7 +766,7 @@
 	
 $(PB12_COMPRESS): BootROMs/pb12.c
 	-@$(MKDIR) -p $(dir $@)
-	$(NATIVE_CC) -std=c99 -Wall -Werror $< -o $@
+	$(NATIVE_CC) $(CFLAGS) -std=c99 -Wall -Werror $(LDFLAGS) $< -o $@
 
 $(BIN)/BootROMs/cgb0_boot.bin: BootROMs/cgb_boot.asm
 $(BIN)/BootROMs/agb_boot.bin: BootROMs/cgb_boot.asm
@@ -779,7 +781,7 @@
 
 # Libretro Core (uses its own build system)
 libretro:
-	CC=$(CC) CFLAGS="$(WARNINGS)" $(MAKE) -C libretro BOOTROMS_DIR=$(abspath $(BOOTROMS_DIR)) BIN=$(abspath $(BIN))
+	CC=$(CC) CFLAGS="$(WARNINGS) $(DEBCFLAGS)" $(MAKE) -C libretro BOOTROMS_DIR=$(abspath $(BOOTROMS_DIR)) BIN=$(abspath $(BIN))
 
 # Install for Linux, and other FreeDesktop platforms.
 ifneq ($(FREEDESKTOP),)