[Title] Add default CFLAGS (-g -O2)
authorsyeon.hwang <syeon.hwang@samsung.com>
Sat, 17 Mar 2012 13:47:54 +0000 (22:47 +0900)
committersyeon.hwang <syeon.hwang@samsung.com>
Sat, 17 Mar 2012 13:47:54 +0000 (22:47 +0900)
[Type]
[Module] Emulator/
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/Makefile.tizen

index 1ddf1ec..e0e6c1e 100644 (file)
@@ -9,6 +9,7 @@ QEMU_CFLAGS += -I$(SRC_PATH)/tizen/distrib/ffmpeg/include
 QEMU_CFLAGS += -L$(SRC_PATH)/tizen/distrib/ffmpeg/lib
 QEMU_CFLAGS += $(SDL_CFLAGS)
 QEMU_CFLAGS += $(GLIB_CFLAGS)
+CFLAGS += -g -O2
 
 ifdef CONFIG_WIN32
 LIBS += -lavformat -lavcodec -lavutil -lm
@@ -22,7 +23,7 @@ else
 GL_CFLAGS := -Wall -g -O2 -fno-strict-aliasing
 endif
 
-ifndef CONFIG_WIN32\r
+ifndef CONFIG_WIN32
 ###########################################################
 ## Build openGL
 # i386
@@ -30,7 +31,7 @@ ifeq ($(TARGET_ARCH), i386)
 
 GL_CUR_PATH = $(SRC_PATH)/tizen/src/hw
 
-GL_CFLAGS += -I$(QEMU_CFLAGS) -I$(GL_CUR_PATH) -I$(SRC_PATH)/fpu -I$(SRC_PATH)/$(TARGET_DIRS)
+GL_CFLAGS += -I$(GL_CUR_PATH) -I$(SRC_PATH)/fpu -I$(SRC_PATH)/$(TARGET_DIRS) $(CFLAGS)
 
 parse_gl_h: parse_gl_h.c
        $(CC) -g -o $@ $<
@@ -95,4 +96,4 @@ ifndef CONFIG_WIN32
 ## opengl library for i386
 obj-i386-y += virtio-gl.o helper_opengl.o opengl_exec.o mesa_mipmap.o gloffscreen_common.o gloffscreen_xcomposite.o gloffscreen_wgl.o gloffscreen_test.o
 ###########################################################
-endif
\ No newline at end of file
+endif