]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/msw/.makesetup.mk
more build tweaks
[wxWidgets.git] / wxPython / distrib / msw / .makesetup.mk
1
2 SRC=$(WXWIN)/include/wx/msw/setup.h
3 DIR=$(WXWIN)/lib
4 FILES= $(DIR)/vc_dll/mswd/wx/setup.h \
5 $(DIR)/vc_dll/mswh/wx/setup.h \
6 $(DIR)/vc_dll/mswud/wx/setup.h \
7 $(DIR)/vc_dll/mswuh/wx/setup.h \
8 $(DIR)/vc_dll/msw/wx/setup.h \
9 $(DIR)/vc_dll/mswu/wx/setup.h \
10 \
11 $(DIR)/vc_lib/msw/wx/setup.h \
12
13
14 UNI_SEDCMD=sed "s!wxUSE_UNICODE 0!wxUSE_UNICODE 1!g;s!wxUSE_UNICODE_MSLU 0!wxUSE_UNICODE_MSLU 1!g"
15 HYB_SEDCMD=sed "s!wxUSE_MEMORY_TRACING 1!wxUSE_MEMORY_TRACING 0!g;s!wxUSE_DEBUG_CONTEXT 1!wxUSE_DEBUG_CONTEXT 0!g"
16
17 all : $(FILES)
18
19 test :
20 echo $(DIR)\vc_lib\msw\wx\setup.h
21
22 # debug
23 $(DIR)\vc_dll\mswd\wx\setup.h : $(SRC) .makesetup.mk
24 cat $(SRC) > setup.h.tmp
25 mv setup.h.tmp $@
26
27 # hybrid
28 $(DIR)\vc_dll\mswh\wx\setup.h : $(SRC) .makesetup.mk
29 cat $(SRC) | $(HYB_SEDCMD) > setup.h.tmp
30 mv setup.h.tmp $@
31
32 # release
33 $(DIR)\vc_dll\msw\wx\setup.h : $(SRC) .makesetup.mk
34 cat $(SRC) > setup.h.tmp
35 mv setup.h.tmp $@
36
37 $(DIR)\vc_lib\msw\wx\setup.h : $(SRC) .makesetup.mk
38 cat $(SRC) > setup.h.tmp
39 mv setup.h.tmp $@
40
41 # debug-uni
42 $(DIR)\vc_dll\mswud\wx\setup.h : $(SRC) .makesetup.mk
43 cat $(SRC) | $(UNI_SEDCMD) > setup.h.tmp
44 mv setup.h.tmp $@
45
46 # hybrid-uni
47 $(DIR)\vc_dll\mswuh\wx\setup.h : $(SRC) .makesetup.mk
48 cat $(SRC) | $(UNI_SEDCMD) | $(HYB_SEDCMD) > setup.h.tmp
49 mv setup.h.tmp $@
50
51 # release-uni
52 $(DIR)\vc_dll\mswu\wx\setup.h : $(SRC) .makesetup.mk
53 cat $(SRC) | $(UNI_SEDCMD) > setup.h.tmp
54 mv setup.h.tmp $@
55
56
57