6 # MinGW Makefile with precompiled header support
13 CFLAGS = -DWIN32 -D_WIN32_IE=0x0600 -D_WIN32_WINNT=0x0501 -fexceptions -Wall -I.
14 RCFLAGS = -DWIN32 -D__WINDRES__
15 LFLAGS = -Wl,--subsystem,windows
22 CFLAGS += -DNDEBUG -Os
33 # LFLAGS+= -Wl,--entry,_wWinMain@16
41 VPATH = shell utility taskbar desktop dialogs
45 TARGET = $(PROGRAM)$(EXEC_SUFFIX)
79 LIBS = gdi32 comctl32 ole32 uuid
80 DELAYIMPORTS = oleaut32 wsock32
82 all: precomp.h.gch $(TARGET)
85 $(CXX) $(CFLAGS) precomp.h
87 $(TARGET): $(OBJECTS) $(PROGRAM)$(RES_SUFFIX) notifyhook.dll libexpat.dll
88 $(LINK) $(LFLAGS) -o $@ $^ $(addprefix -l,$(LIBS)) $(addprefix -l,$(DELAYIMPORTS))
90 explorer$(RES_SUFFIX): $(PROGRAM)_intres.rc res/*.bmp res/*.ico
91 windres $(RCFLAGS) -o $@ $(PROGRAM)_intres.rc
93 notifyhook.dll: notifyhook/notifyhook.c notifyhook/notifyhook.h
94 $(CC) -D_WIN32_IE=0x0600 -Wall -D_NOTIFYHOOK_IMPL -Os -s notifyhook/notifyhook.c -shared -o $@
97 rm -f $(TARGET) $(OBJECTS) $(PROGRAM)$(RES_SUFFIX) precomp.h.gch
99 docu: doxy-footer.html
103 -cmd /c start /b /low /wait hhc doxy-doc\html\index.hhp
104 cmd /c move /y doxy-doc\html\index.chm ros-explorer.chm
106 -cmd /c start /b /low /wait hhc doxy-doc\html\index.hhp
107 cmd /c move /y doxy-doc\html\index.chm ros-explorer-full.chm
109 doxy-footer.html: ever