diff --git a/makefile.mingw b/makefile.mingw index 2ae982d64..97b5384a0 100644 --- a/makefile.mingw +++ b/makefile.mingw @@ -15,14 +15,23 @@ endif # Flags for MinGW # CFLAGS = -D_WIN32_WINNT=0x0500 -CFLAGS = -LFLAGS = -mwindows -lshlwapi +CFLAGS = +LFLAGS = -mwindows ifdef DEBUGMODE - LFLAGS_LAST = -lalld -lpsapi -lwininet + LFLAGS_LAST = -lalld -lpsapi else - LFLAGS_LAST = -lalleg -lwininet + ifdef STATIC_ALLEG_LINK + CFLAGS += -DALLEGRO_STATICLINK + LFLAGS_LAST = -lalleg -ldinput8 -lddraw -ldxguid -ldsound + else + LFLAGS_LAST = -lalleg44.dll + endif endif +LFLAGS_LAST += -lUser32 -lShell32 -lComCtl32 -lComDlg32 -lGdi32 \ + -lMsimg32 -lWinMM -lAdvAPI32 -lOle32 -lShLwApi -lVfw32 \ + -lwininet + WITHICON = 1 ######################################################################