Bug 470165 - Cleanup the GTK nsFilePicker code; r+sr=roc
[wine-gecko.git] / build / wince / tools / Makefile
blob0f4acbde1c1066868f38564efae1738a909f82e3
2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
15 # The Original Code is Mozilla CE Shunt Library.
17 # The Initial Developer of the Original Code is Mozilla Corporation.
18 # Portions created by the Initial Developer are Copyright (C) 2008
19 # the Initial Developer. All Rights Reserved.
21 # Contributor(s):
22 # John Wolfe (wolfe@lobo.us)
24 # Alternatively, the contents of this file may be used under the terms of
25 # either of the GNU General Public License Version 2 or later (the "GPL"),
26 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 DEVENV_FLAG=-
40 CC=cl -O2
42 MOZCE_DEVENV=vs$(MOZ_MSVCVERSION)
44 MOZCE_SHUNT_SLN=../shunt/build/$(MOZCE_DEVENV)/mozce_shunt_static.sln
45 MOZCE_PROJECT="Release|Windows Mobile 6 Professional SDK (ARMV4I)"
46 MOZCE_SHUNT_DLL=../shunt/build/$(MOZCE_DEVENV)/mozce_shunt.dll
47 MOZCE_TOOLS_DIR=$(MOZCE_DEVENV)ppc2003arm
49 BUILD_SWITCH=$(DEVENV_FLAG)Build
50 REBUILD_SWITCH=$(DEVENV_FLAG)Rebuild
51 CLEAN_SWITCH=$(DEVENV_FLAG)clean
54 all: output_some_env \
55 $(MOZCE_TOOLS_DIR)/arm-wince-as.exe \
56 $(MOZCE_TOOLS_DIR)/arm-wince-gcc.exe \
57 $(MOZCE_TOOLS_DIR)/arm-wince-lib.exe \
58 $(MOZCE_TOOLS_DIR)/arm-wince-link.exe \
59 $(MOZCE_TOOLS_DIR)/arm-wince-res.exe
60 devenv $(MOZCE_SHUNT_SLN) $(BUILD_SWITCH) $(MOZCE_PROJECT)
62 clobber:
63 rm -f $(MOZCE_TOOLS_DIR)/*.exe
64 rm -f $(MOZCE_TOOLS_DIR)/*.obj
65 rm -f *.obj
66 rm -f *.exe
67 rm -rf bin
68 devenv $(MOZCE_SHUNT_SLN) $(CLEAN_SWITCH) $(MOZCE_PROJECT)
70 output_some_env:
71 @echo FOUND $(MOZCE_DEVENV)
72 @echo FOUND $(MOZCE_DEVENV): VSINSTALLDIR=$(VSINSTALLDIR) / MINGW32=$(MINGW32) / MSYSTEM=$(MSYSTEM)
73 @echo FOUND $(MOZCE_DEVENV)
75 $(MOZCE_TOOLS_DIR)/arm-wince-as.exe: $(MOZCE_TOOLS_DIR)/arm-wince-as.c $(MOZCE_TOOLS_DIR)/toolspath.h
76 $(CC) $(MOZCE_TOOLS_DIR)/arm-wince-as.c
77 mkdir -p bin;
78 cp arm-wince-as.exe bin; mv arm-wince-as.exe $(MOZCE_TOOLS_DIR); rm *.obj
80 $(MOZCE_TOOLS_DIR)/arm-wince-gcc.exe: $(MOZCE_TOOLS_DIR)/arm-wince-gcc.c $(MOZCE_TOOLS_DIR)/toolspath.h
81 $(CC) $(MOZCE_TOOLS_DIR)/arm-wince-gcc.c
82 mkdir -p bin;
83 cp arm-wince-gcc.exe bin; mv arm-wince-gcc.exe $(MOZCE_TOOLS_DIR); rm *.obj
85 $(MOZCE_TOOLS_DIR)/arm-wince-lib.exe: $(MOZCE_TOOLS_DIR)/arm-wince-lib.c $(MOZCE_TOOLS_DIR)/toolspath.h
86 $(CC) $(MOZCE_TOOLS_DIR)/arm-wince-lib.c
87 mkdir -p bin;
88 cp arm-wince-lib.exe bin; mv arm-wince-lib.exe $(MOZCE_TOOLS_DIR); rm *.obj
90 $(MOZCE_TOOLS_DIR)/arm-wince-link.exe: $(MOZCE_TOOLS_DIR)/arm-wince-link.c $(MOZCE_TOOLS_DIR)/toolspath.h
91 $(CC) $(MOZCE_TOOLS_DIR)/arm-wince-link.c
92 mkdir -p bin;
93 cp arm-wince-link.exe bin; mv arm-wince-link.exe $(MOZCE_TOOLS_DIR); rm *.obj
95 $(MOZCE_TOOLS_DIR)/arm-wince-res.exe: $(MOZCE_TOOLS_DIR)/arm-wince-res.c $(MOZCE_TOOLS_DIR)/toolspath.h
96 $(CC) $(MOZCE_TOOLS_DIR)/arm-wince-res.c
97 mkdir -p bin;
98 cp arm-wince-res.exe bin; mv arm-wince-res.exe $(MOZCE_TOOLS_DIR); rm *.obj