summaryrefslogtreecommitdiff
path: root/digital-watch/Debug/makefile.sa
blob: 569c64c4abbfc16e86fa21760af8c9f745dea6c6 (plain)
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
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

SA_C_OPTIONS := -I"pch" -D_DEBUG -I"/home/eunyoung/workspace/digitalwatch/inc" -O0 -g3 -Wall -c -fmessage-length=0 $(TC_COMPILER_MISC) $(RS_COMPILER_MISC) -fPIE --sysroot="$(SBI_SYSROOT)" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/libxml2" -I"/home/eunyoung/tizen-sdk/library" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/appcore-agent" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/appcore-watch" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/appfw" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/badge" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/base" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/cairo" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ckm" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/content" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/context-manager" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/dbus-1.0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/device" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/dlog" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ecore-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/e_dbus-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/edje-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/eet-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/efl-extension" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/efreet-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/eina-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/eina-1/eina" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/eio-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/elementary-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/embryo-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ethumb-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/evas-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ewebkit2-0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/fontconfig" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/freetype2" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/gio-unix-2.0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/glib-2.0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/json-glib-1.0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/json-glib-1.0/json-glib" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/location" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/media" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/media-content" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/messaging" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/minizip" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/network" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/notification" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/sensor" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/storage" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/system" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/telephony" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ui" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/widget_service" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/widget_viewer_evas" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/lib/dbus-1.0/include" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/lib/glib-2.0/include" -Werror-implicit-function-declaration
SA_CPP_OPTIONS := -I"pch" -D_DEBUG -I"/home/eunyoung/workspace/digitalwatch/inc" -O0 -g3 -Wall -c -fmessage-length=0 -target i386-tizen-linux-gnueabi -gcc-toolchain /home/eunyoung/tizen-sdk/tools/smart-build-interface/../i386-linux-gnueabi-gcc-4.6/ -ccc-gcc-name i386-linux-gnueabi-g++ -march=i386 -Wno-gnu -fPIE --sysroot="/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/libxml2" -I"/home/eunyoung/tizen-sdk/library" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/appcore-agent" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/appcore-watch" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/appfw" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/badge" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/base" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/cairo" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ckm" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/content" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/context-manager" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/dbus-1.0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/device" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/dlog" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ecore-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/e_dbus-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/edje-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/eet-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/efl-extension" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/efreet-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/eina-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/eina-1/eina" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/eio-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/elementary-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/embryo-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ethumb-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/evas-1" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ewebkit2-0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/fontconfig" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/freetype2" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/gio-unix-2.0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/glib-2.0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/json-glib-1.0" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/json-glib-1.0/json-glib" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/location" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/media" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/media-content" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/messaging" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/minizip" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/network" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/notification" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/sensor" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/storage" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/system" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/telephony" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/ui" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/widget_service" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/include/widget_viewer_evas" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/lib/dbus-1.0/include" -I"/home/eunyoung/tizen-sdk/tools/smart-build-interface/../../platforms/wearable-2.3.1/rootstraps/wearable-2.3.1-emulator.core/usr/lib/glib-2.0/include"
SA_REPORT_PATH := /home/eunyoung/workspace/digitalwatch/SA_Report

REL_C_SRCS = $(filter-out $(wildcard ../*),$(wildcard $(C_SRCS)))
REL_CC_SRCS = $(filter-out $(wildcard ../*),$(wildcard $(CC_SRCS)))
REL_CPP_SRCS = $(filter-out $(wildcard ../*),$(wildcard $(CPP_SRCS)))

C_AST := $(REL_C_SRCS:../%=%.ast)
C_FN := $(REL_C_SRCS:../%=%.fn)
C_SA := $(REL_C_SRCS:../%=%.sa)

CPP_AST := $(REL_CC_SRCS:../%=%.ast) $(REL_CPP_SRCS:../%=%.ast)
CPP_FN := $(REL_CC_SRCS:..%=%.fn) $(REL_CPP_SRCS:../%=%.fn)
CPP_SA := $(REL_CC_SRCS:..%=%.sa) $(REL_CPP_SRCS:../%=%.sa)

CHECKERS=alpha.cplusplus.NewDeleteLeaks,alpha.unix.cstring,alpha.security.ArrayBoundV2,resourceLeak,core,unix,tizen

$(C_AST): %.ast : ../%
	clang -emit-ast  -o $@ $< $(SA_C_OPTIONS)
	-@echo 'Finished building: $@'
	-@echo ' '
	
$(C_FN): %.fn : %.ast
	$(RM) $@
	clangFnMapGen -o $@ -ast $< $< --
	-@echo 'Finished generating: $@'
	-@echo ' '
	
$(C_SA): %: pre_sa
	clang --analyze $(@:%.sa=../%) -Xclang -analyzer-output=$(SA_REPORT_TYPE) -Xclang -analyzer-checker=$(CHECKERS) -Xclang -analyzer-purge=block -o $(SA_REPORT_PATH) $(SA_C_OPTIONS)
	-@echo 'Finished Analyzing: $(@:%.sa=../%)'
	-@echo ' '
	
$(CPP_AST): %.ast : ../%
	clang++ -emit-ast  -o $@ $< $(SA_CPP_OPTIONS)
	-@echo 'Finished building: $@'
	-@echo ' '
	
$(CPP_FN): %.fn : %.ast
	$(RM) $@
	clangFnMapGen -o $@ -ast $< $< --
	-@echo 'Finished generating: $@'
	-@echo ' '
	
$(CPP_SA): %: pre_sa
	clang++ --analyze $(@:%.sa=../%) -Xclang -analyzer-output=$(SA_REPORT_TYPE) -Xclang -analyzer-checker=$(CHECKERS) -Xclang -analyzer-purge=block -o $(SA_REPORT_PATH) $(SA_CPP_OPTIONS)
	-@echo 'Finished Analyzing: $(@:%.sa=../%)'
	-@echo ' '

sa_clean:
	$(RM) $(C_AST) $(C_FN) $(CPP_AST) $(CPP_FN) $(SA_REPORT_PATH)/externalFnMap.txt $(wildcard $(SA_REPORT_PATH)/*.xml)
	-@echo ' '
	
pre_sa: $(C_AST) $(C_FN) $(CPP_AST) $(CPP_FN)
	-$(RM) $(SA_REPORT_PATH)/externalFnMap.txt $(wildcard $(SA_REPORT_PATH)/*.xml)
	cat $(C_FN) $(CPP_FN) > $(SA_REPORT_PATH)/externalFnMap.txt
	
sa: $(C_SA) $(CPP_SA)

.PHONY: sa pre_sa sa_clean $(C_SA) $(CPP_SA)