]> git.saurik.com Git - wxWidgets.git/blob - src/gtk/setup/rules/generic/needed
added some wxMSW stuff
[wxWidgets.git] / src / gtk / setup / rules / generic / needed
1 #SHELL=/bin/sh
2 MYGREP=$(WXBASEDIR)/setup/general/mygrep
3 checkneeds::
4 @if test "x$(NEEDED_DEFINES)" != x ; then \
5 RESULT=0 ; \
6 for each in $(NEEDED_DEFINES) xxx; do \
7 if test "$$each" != xxx ; then \
8 LINE=`cat $(SETUP_DIR)/wx_setup.h \
9 | sed "s/ /,/g" \
10 | $(MYGREP) ",$$each," \
11 | $(MYGREP) "#define" \
12 | $(MYGREP) "1" ` ; \
13 if test "x$$LINE" = x ; then \
14 (TMPVAR=`pwd`;\
15 TMPVAR=`dirname $$TMPVAR`;\
16 echo "$$each needed to compile "`basename $$TMPVAR`"...";\
17 );\
18 RESULT=1 ; \
19 fi; \
20 fi; \
21 done ;\
22 exit $$RESULT; \
23 fi
24