regenerated
[wxWidgets.git] / samples / widgets / makefile.vc
1 # =========================================================================
2 #     This makefile was generated by
3 #     Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 #     Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7
8 # -------------------------------------------------------------------------
9 # These are configurable options:
10 # -------------------------------------------------------------------------
11
12 # Type of compiled binaries [debug,release]
13 BUILD = release
14 # Name of your custom configuration. This affects directory
15 #            where object files are stored as well as the location of
16 #            compiled .lib files and setup.h under the lib/ toplevel directory. 
17 CFG = 
18 # Standard preprocessor flags (common for CC and CXX) 
19 CPPFLAGS = /DWIN32 /D_WINDOWS
20 # C++ compiler 
21 CXX = cl
22 # Standard flags for C++ 
23 CXXFLAGS = 
24 # Standard linker flags 
25 LDFLAGS = 
26 # Multiple libraries or single huge monolithic one? [0,1]
27 MONOLITHIC = 1
28 # Is this official build by wxWindows developers? [0,1]
29 OFFICIAL_BUILD = 0
30 # What type of library to build? [0,1]
31 SHARED = 1
32 # Compile Unicode build of wxWindows? [0,1]
33 UNICODE = 0
34 # Build GUI libraries? [0,1]
35 USE_GUI = 1
36 # Build wxUniversal instead of native port? [0,1]
37 WXUNIV = 0
38
39 # -------------------------------------------------------------------------
40 # Do not modify the rest of this file!
41 # -------------------------------------------------------------------------
42
43 ### Variables: ###
44
45 OBJS = objs_vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
46 WIDGETS_CXXFLAGS = $(CPPFLAGS) /MD /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I./../../include /I./../../lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I./../../src/tiff /I./../../src/jpeg /I./../../src/png /I./../../src/zlib  /I./../../src/regex /I. $(__DLLFLAG_p) $(CXXFLAGS)
47
48 ### Conditionally set variables: ###
49
50 !if "$(USE_GUI)" == "0"
51 PORTNAME = base
52 !endif
53 !if "$(USE_GUI)" == "1"
54 PORTNAME = msw
55 !endif
56 !if "$(BUILD)" == "debug"
57 WXDEBUGFLAG = d
58 !endif
59 !if "$(SHARED)" == "1"
60 WXDLLFLAG = dll
61 !endif
62 !if "$(UNICODE)" == "1"
63 WXUNICODEFLAG = u
64 !endif
65 !if "$(WXUNIV)" == "1"
66 WXUNIVNAME = univ
67 !endif
68 !if "$(BUILD)" == "debug"
69 __DEBUG_DEFINE_p = /D__WXDEBUG__
70 !endif
71 !if "$(BUILD)" == "debug"
72 __DEBUG_DEFINE_p_1 = /d__WXDEBUG__
73 !endif
74 !if "$(SHARED)" == "1"
75 __DLLFLAG_p = /DWXUSINGDLL
76 !endif
77 !if "$(SHARED)" == "1"
78 __DLLFLAG_p_1 = /dWXUSINGDLL
79 !endif
80 !if "$(UNICODE)" == "1"
81 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
82 !endif
83 !if "$(UNICODE)" == "1"
84 __UNICODE_DEFINE_p_1 = /dwxUSE_UNICODE=1
85 !endif
86 !if "$(MONOLITHIC)" == "0"
87 __WXLIB_CORE_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
88 !endif
89 !if "$(MONOLITHIC)" == "1"
90 __WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
91 !endif
92 !if "$(WXUNIV)" == "1"
93 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
94 !endif
95 !if "$(WXUNIV)" == "1"
96 __WXUNIV_DEFINE_p_1 = /d__WXUNIVERSAL__
97 !endif
98
99
100 all: $(OBJS)
101 $(OBJS):
102         -if not exist $(OBJS) mkdir $(OBJS)
103
104 ### Targets: ###
105
106 all: $(OBJS)\widgets.exe
107
108 $(OBJS)\widgets_button.obj: .\button.cpp
109         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
110
111 $(OBJS)\widgets_combobox.obj: .\combobox.cpp
112         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
113
114 $(OBJS)\widgets_gauge.obj: .\gauge.cpp
115         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
116
117 $(OBJS)\widgets_listbox.obj: .\listbox.cpp
118         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
119
120 $(OBJS)\widgets_notebook.obj: .\notebook.cpp
121         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
122
123 $(OBJS)\widgets_radiobox.obj: .\radiobox.cpp
124         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
125
126 $(OBJS)\widgets_slider.obj: .\slider.cpp
127         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
128
129 $(OBJS)\widgets_spinbtn.obj: .\spinbtn.cpp
130         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
131
132 $(OBJS)\widgets_static.obj: .\static.cpp
133         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
134
135 $(OBJS)\widgets_textctrl.obj: .\textctrl.cpp
136         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
137
138 $(OBJS)\widgets_widgets.obj: .\widgets.cpp
139         $(CXX) /c /nologo /TP /Fo$@ $(WIDGETS_CXXFLAGS) $**
140
141 $(OBJS)\widgets_widgets.res: .\widgets.rc
142         rc /fo$@ /d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i./../../include /i./../../lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /i./../../src/tiff /i./../../src/jpeg /i./../../src/png /i./../../src/zlib  /i./../../src/regex /i. $(__DLLFLAG_p_1) $**
143
144 clean: 
145         -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
146         -if exist $(OBJS)\*.res del $(OBJS)\*.res
147         -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
148
149 install: all
150
151 uninstall: 
152
153 $(OBJS)\widgets.exe: $(OBJS)\widgets_button.obj $(OBJS)\widgets_combobox.obj $(OBJS)\widgets_gauge.obj $(OBJS)\widgets_listbox.obj $(OBJS)\widgets_notebook.obj $(OBJS)\widgets_radiobox.obj $(OBJS)\widgets_slider.obj $(OBJS)\widgets_spinbtn.obj $(OBJS)\widgets_static.obj $(OBJS)\widgets_textctrl.obj $(OBJS)\widgets_widgets.obj $(OBJS)\widgets_widgets.res
154         link /NOLOGO /OUT:$@ $(LDFLAGS) /LIBPATH:.\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)  /SUBSYSTEM:WINDOWS @<<
155         $(OBJS)\widgets_button.obj $(OBJS)\widgets_combobox.obj $(OBJS)\widgets_gauge.obj $(OBJS)\widgets_listbox.obj $(OBJS)\widgets_notebook.obj $(OBJS)\widgets_radiobox.obj $(OBJS)\widgets_slider.obj $(OBJS)\widgets_spinbtn.obj $(OBJS)\widgets_static.obj $(OBJS)\widgets_textctrl.obj $(OBJS)\widgets_widgets.obj $(OBJS)\widgets_widgets.res  $(__WXLIB_MONO_p) $(__WXLIB_CORE_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib wxzlib$(WXDEBUGFLAG).lib  wxregex$(WXDEBUGFLAG).lib  kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib oldnames.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
156 <<