2 # ReactOS lean explorer
6 # MinGW Makefile with precompiled header support
13 CFLAGS = -DWIN32 -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501 -fexceptions -Wall -I.
14 RCFLAGS = -DWIN32 -D__WINDRES__
15 LFLAGS = -Wl,--subsystem,windows
22 CFLAGS += -DNDEBUG -Os -D_NO_CONTEXT
33 # LFLAGS+= -Wl,--entry,_wWinMain@16
41 VPATH = shell utility taskbar desktop dialogs
45 TARGET = $(PROGRAM)$(EXEC_SUFFIX)
68 LIBS = gdi32 comctl32 ole32 uuid
70 all: precomp.h.gch $(TARGET)
72 precomp.h.gch: *.h utility/*.h shell/*.h desktop/*.h
73 $(CXX) $(CFLAGS) precomp.h
75 $(TARGET): $(OBJECTS) $(PROGRAM)$(RES_SUFFIX)
76 $(LINK) $(LFLAGS) -o $@ $^ $(addprefix -l,$(LIBS))
78 explorer$(RES_SUFFIX): $(PROGRAM)_intres.rc res/*.bmp res/*.ico
79 windres $(RCFLAGS) -o $@ $(PROGRAM)_intres.rc
82 rm -f $(TARGET) $(OBJECTS) $(PROGRAM)$(RES_SUFFIX) precomp.h.gch