From: glenlow Date: Sat, 1 Mar 2008 12:35:02 +0000 (+0000) Subject: lefty now builds in MinGW: minor preprocessor changes, modern definition of WinMain... X-Git-Tag: LAST_LIBGRAPH~32^2~4637 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2eb9f2bc813fdbb6ecea16f27097e532b7c3b6ee;p=graphviz lefty now builds in MinGW: minor preprocessor changes, modern definition of WinMain, use windres to compile resources in MinGW/Cygwin --- diff --git a/cmd/lefty/Makefile.am b/cmd/lefty/Makefile.am index e557ee416..aa83bfa37 100644 --- a/cmd/lefty/Makefile.am +++ b/cmd/lefty/Makefile.am @@ -85,10 +85,14 @@ lefty_LDADD = $(top_builddir)/cmd/lefty/dot2l/libdot2l.la \ endif if WITH_WIN32 -RC_CPPFLAGS = '-IC:\\progra~1\\microsoft visual studio 8\\vc\\PlatformSDK\\include' - +if RC_IS_RC +lefty.res : ws/mswin32/lefty.rc + rc -l 0x409 -Iws/mswin32 '-IC:\\progra~1\\microsoft visual studio 8\\vc\\PlatformSDK\\include' -DNDEBUG -fo lefty.res ws/mswin32/lefty.rc +endif +if RC_IS_WINDRES lefty.res : ws/mswin32/lefty.rc - rc -l 0x409 -Iws/mswin32 $(RC_CPPFLAGS) -DNDEBUG -fo lefty.res ws/mswin32/lefty.rc + windres -l 0x409 -Iws/mswin32 -DNDEBUG -Ocoff -o lefty.res ws/mswin32/lefty.rc +endif endif .1.pdf: