Makefile
5.29 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
include custom_option.txt
include custom_include.txt
PLUTO_INC = \
-I "." \
-I "./Inc" \
-I "../.." \
-I "../../customer/customerinc" \
-I "../../MMI/PoC/PoCInc" \
-I "../../Framework/DebugLevels/DebugLevelInc" \
-I "../../MMI/Calls/CallsInc" \
-I "../../MMI/ChatApp/ChatAppInc" \
-I "../../MMI/EmailApp/EmailAppInc" \
-I "../../MMI/IMPS/IMPSInc" \
-I "../../MMI/Inc" \
-I "../../MMI/Inc/ImgID" \
-I "../../MMI/Inc/MenuID" \
-I "../../MMI/Inc/StringID" \
-I "../../Framework/osl/oslinc" \
-I "../../MMI/CallManagement/CommonFiles/CommonInc" \
-I "../../MMI/CallManagement/OutgoingCallManagement/OutgoingInc" \
-I "../../MMI/CallManagement/IncomingCallManagement/IncomingInc" \
-I "../../MMI/Setting/SettingInc" \
-I "../../MMI/PhoneBook/PhoneBookInc" \
-I "../../Framework/CommonScreens/CommonScreensInc" \
-I "../../Framework/CommonFiles/CommonInc" \
-I "../../Framework/Tasks/TasksInc" \
-I "../../Framework/EventHandling/EventsInc" \
-I "../../Framework/History/HistoryInc" \
-I "../../Framework/MemManager/MemManagerInc" \
-I "../../MMI/DataAccount/DataAccountInc" \
-I "../../MMI/FunAndGames/FunAndGamesInc" \
-I "../../Framework/GUI/gui_inc" \
-I "../../MMI/DateTime/DateTimeInc" \
-I "../../MMI/MiscFramework/MiscFrameworkInc" \
-I "../../MMI/Help/HelpInc" \
-I "../../MMI/IdleScreen/IdleScreenInc" \
-I "../../MMI/Messages/MessagesInc" \
-I "../../MMI/NITZHandler/NITZInc" \
-I "../../MMI/PROFILES/ProfilesInc" \
-I "../../MMI/SAT/SATInc" \
-I "../../MMI/SSC/SSCInc" \
-I "../../MMI/Organizer/OrganizerInc" \
-I "../../MMI/Extra/ExtraInc" \
-I "../../MMI/Customer/CustResource" \
-I "../../MMI/FontData" \
-I "../../Framework/DebugLevels/DebugLevelInc" \
-I "../../MMI/MainMenu/MainMenuInc" \
-I "../../MMI/ems/emsinc" \
-I "../../MMI/Dictionary/DictInc" \
-I "../../MMI/CPHS/CPHSInc" \
-I "../../MMI/audio/audioinc" \
-I "../../MMI/Stopwatch/StopwatchInc" \
-I "../../MMI/Resource\Inc" \
-I "../../MtkApp/MtkAppInc" \
-I "../../MtkApp/EngineerMode/EngineerModeInc" \
-I "../../MtkApp/Connectivity/ConnectivityInc" \
-I "../../MtkApp/SoundRecorder/SoundRecorderInc" \
-I "../../MtkApp/AudioPlayer/AudioPlayerInc" \
-I "../../MtkApp/ABRepeater/ABRepeaterInc" \
-I "../../MtkApp/mmiapi/include" \
-I "../../MTkApp/Camera/CameraInc" \
-I "../../MTkApp/Video/VideoInc" \
-I "../../MTkApp/FileMgr/FileMgrInc" \
-I "../../Framework/GDI/GDIInc" \
-I "../../MTkApp/vObjects/vObjectInc" \
-I "../../MTkApp/FMRadio/FMRadioInc" \
-I "../../MTkApp/FMScheduleRec/FMScheduleRecInc" \
-I "../../MTkApp/VRSD/VRSDInc" \
-I "../../MTkApp/VRSI/VRSIInc" \
-I "../../MTkApp/PhotoEditor\PhotoEditorInc" \
-I "../../MTkApp/BGSound/BGSoundInc" \
-I "../../MtkApp\JavaAgency\JavaAgencyInc" \
-I "../../../kal/include" \
-I "../../../ps/interfaces/enum" \
-I "../../../ps/l4/include" \
-I "../../../ps/gen/mcd" \
-I "../../../ps/interfaces/local_inc" \
-I "../../../interface/mmi" \
-I "../../../j2me/jam/include" \
-I "../../../fmt\include" \
-I "../DevApp/DevAppInc" \
-I "../CustomerInc" \
-I "../Avk/AvkInc" \
-I "../../Framework/MemManager/memmanagerinc" \
-I "../../VendorApp/ResGenerator/Inc"
INC = $(PLUTO_INC) ${CUSTOM_INC}
MTK_DEFS = \
-D "__MULTI_BIN_LOAD__" \
-D "__EXE_DLL__"
SHARE_DEFS = \
-D "WIN32"\
-D "MMI_ON_WIN32"\
-D "_DEBUG"\
-D "_WINDOWS"\
-D "_MBCS"\
-D "_CONSOLE"\
-D "DEVELOPER_BUILD_FIRST_PASS"\
-D "__UCS2_ENCODING"\
-D "__RESOURCE_GEN_"\
-D "_AFXDLL"\
-D "__POPULATE_ENGINE_"\
-D "DEBUG_WINDOW"\
-D "_WINERROR_H" \
-D "DEVAPP_RESOURCE" \
-D "__DEVAPP_RESOURCE_OUTPUT__" \
${CUSTOM_OPTION}
DEFINE = $(MTK_DEFS) $(SHARE_DEFS)
MMI_FEATURES_H = ../../MMI/Inc/MMI_features.h
ENUM_LIST_H = ./enum_list.h
OUTDIR_XML =./debug/res
OBJECTS = $(PLUTOMMI_OBJS) $(RES_OBJS) $(MTK_OBJS)
PLUTOMMI_OBJS = \
./obj/ResBytestream.o\
MTK_OBJS = \
CustResDeclare.o\
DevApp_WriteRes.o\
PopulateDevAppRes.o\
DevApp_resgenerator.o\
DevApp_bmp2ems.c\
DevApp_BMPLoader.c\
DevApp_GIFLoader.c\
DevApp_ImageGetDimension.o\
RES_XML_SOURCES = $(patsubst ./temp/res/%, %,$(wildcard ./temp/res/*.c))
RES_XML_I = $(patsubst %.c,$(OUTDIR_XML)/%.i,$(RES_XML_SOURCES))
RES_SOURCES = $(patsubst ../DevResource/Res_MMI/%, %,$(wildcard ../DevResource/Res_MMI/*.c))
RES_OBJS = $(patsubst %.c,%.o,$(RES_SOURCES))
READEXCEL_OBJS = DevApp_readexcel.o\
./obj/FontRes.o\
INC_PATH_LIST = $(patsubst "%",%,$(filter "%",$(PLUTO_INC)))
H_LIST = $(filter-out %enum_list.h,$(foreach list, $(INC_PATH_LIST), $(wildcard $(list)/*.h)))
.SUFFIXES: .o .cpp .c
xml_files: $(RES_XML_I) $(H_LIST)
$(RES_XML_I):$(OUTDIR_XML)/%.i: temp/res/%.c
@echo Compiling $< &
@gcc $(DEFINE) $(INC) $< -E > $@
DevApp_readexcel.o: DevApp_readexcel.c $(H_LIST) $(ENUM_LIST_H)
@echo Compiling $< & \
gcc $(DEFINE) $(INC) -g -w -c $< -o $@
%.o: %.c $(H_LIST)
@echo Compiling $< & \
gcc $(DEFINE) $(INC) -g -w -c $< -o $@
.cpp.o:
@echo Compiling $< & \
g++ $(DEFINE) $(INC) -g -w -c $< -o $@
#gcc $(DEFINE) $(INC) -dD -E -c $< -o $@
VPATH=.:../DevResource/Res_MMI:./obj
DevApp_readexcel.exe: $(READEXCEL_OBJS)
@echo Linking $< & \
gcc -g -o DevApp_readexcel $(READEXCEL_OBJS)
DevApp_resgenerator.exe: $(OBJECTS)
@echo Linking $< & \
gcc -g -o Devapp_resgenerator $(OBJECTS)