]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/msw/.makesetup.mk
build static lib and then use it for building wxrc
[wxWidgets.git] / wxPython / distrib / msw / .makesetup.mk
CommitLineData
d14a1e28
RD
1
2SRC=..\..\include\wx\msw\setup.h
3DIR=$(WXWIN)\lib
4FILES= $(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
12UNI_SEDCMD=sed "s!wxUSE_UNICODE 0!wxUSE_UNICODE 1!g;s!wxUSE_UNICODE_MSLU 0!wxUSE_UNICODE_MSLU 1!g"
13HYB_SEDCMD=sed "s!wxUSE_MEMORY_TRACING 1!wxUSE_MEMORY_TRACING 0!g;s!wxUSE_DEBUG_CONTEXT 1!wxUSE_DEBUG_CONTEXT 0!g"
14
15all : $(FILES)
16
17
18
19# debug
20$(DIR)\vc_dll\mswd\wx\setup.h : $(SRC) .makesetup.mk
21 -if not exist $(DIR)\vc_dll\mswd\wx mkdir /s $(DIR)\vc_dll\mswd\wx
22 cat $(SRC) > $@
23
24# hybrid
25$(DIR)\vc_dll\mswh\wx\setup.h : $(SRC) .makesetup.mk
26 -if not exist $(DIR)\vc_dll\mswh\wx mkdir /s $(DIR)\vc_dll\mswh\wx
27 cat $(SRC) | $(HYB_SEDCMD) > $@
28
29# debug-uni
30$(DIR)\vc_dll\mswud\wx\setup.h : $(SRC) .makesetup.mk
31 -if not exist $(DIR)\vc_dll\mswud\wx mkdir /s $(DIR)\vc_dll\mswud\wx
32 cat $(SRC) | $(UNI_SEDCMD) > $@
33
34# hybrid-uni
35$(DIR)\vc_dll\mswuh\wx\setup.h : $(SRC) .makesetup.mk
36 -if not exist $(DIR)\vc_dll\mswuh\wx mkdir /s $(DIR)\vc_dll\mswuh\wx
37 cat $(SRC) | $(UNI_SEDCMD) | $(HYB_SEDCMD) > $@
38
39# release
40$(DIR)\vc_dll\msw\wx\setup.h : $(SRC) .makesetup.mk
41 -if not exist $(DIR)\vc_dll\msw\wx mkdir /s $(DIR)\vc_dll\msw\wx
42 cat $(SRC) > $@
43
44# release-uni
45$(DIR)\vc_dll\mswu\wx\setup.h : $(SRC) .makesetup.mk
46 -if not exist $(DIR)\vc_dll\mswu\wx mkdir /s $(DIR)\vc_dll\mswu\wx
47 cat $(SRC) | $(UNI_SEDCMD) > $@
48
49
50