Cygwin g++ for 'make depend'
Gisle Vanem <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
In my a GNU-makefile (targeting MSVC), I sometimes use a Cygwin 'g++'
to create dependencies. Like:
DEP_CFLAGS = -MM $(filter -I% -D%, $(CFLAGS)) \
--include $(OBJ_DIR)/config.h \
-DGCC_MAKE_DEPEND
depend:
g++ $(DEP_CFLAGS) $(SOURCE) >> .depend.Windows
....
---------------
But when a wxWidget headers notice a '__GNUC__' and/or '__CYGWIN__' is
involved,
it goes bananas with huge amounts of '#error' statements.
So I just fake 'g++' into a MSVC-compiler in my generated
'$(OBJ_DIR)/config.h':
#if defined(GCC_MAKE_DEPEND)
#define _MSC_VER 1910
#define _WX_CHKCONF_H_ 1
#define _WX_MSW_CHKCONF_H_ 1
#define __WXMSW__ 1
#endif
....
--------------
Is there a better way?
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/7c14d7b5-1278-46d0-95ad-6cfaf59807d1n%40googlegroups.com.