merge ROS Shell without integrated explorer part into trunk
[reactos.git] / reactos / subsys / system / explorer / Make-rosshell.MinGW
1 #
2 # ReactOS shell
3 #
4 # Makefile.PCH
5 #
6 # MinGW Makefile with precompiled header support
7 #
8
9 CC = gcc
10 CXX = g++
11 LINK = g++
12
13 CFLAGS = -DWIN32 -DROSSHELL -D_WIN32_IE=0x0600 -D_WIN32_WINNT=0x0501 -DWINVER=0x0500 -fexceptions -Wall -I. -I$(EXPAT_INC)
14 RCFLAGS = -DWIN32 -DROSSHELL -D__WINDRES__
15 LFLAGS = -Wl,--subsystem,windows
16
17 ifdef DEBUG
18 CFLAGS += -D_DEBUG -g
19 RCFLAGS += -D_DEBUG
20 LFLAGS += -g
21 else
22 CFLAGS += -DNDEBUG -Os -march=pentium4
23 RCFLAGS += -DNDEBUG
24 LFLAGS += -s
25 endif
26
27 ifndef UNICODE
28 UNICODE = 1
29 endif
30
31 ifeq ($(UNICODE),1)
32 CFLAGS += -DUNICODE
33 # LFLAGS+= -Wl,--entry,_wWinMain@16
34 RCFLAGS += -DUNICODE
35 endif
36
37 CXXFLAGS = $(CFLAGS)
38
39 EXEC_SUFFIX = .exe
40 RES_SUFFIX = .coff
41
42 VPATH = shell utility taskbar desktop dialogs services
43
44 PROGRAM = rosshell
45
46 TARGET = $(PROGRAM)$(EXEC_SUFFIX)
47
48 OBJECTS = \
49 startup.o \
50 shellclasses.o \
51 utility.o \
52 window.o \
53 dragdropimpl.o \
54 shellbrowserimpl.o \
55 explorer.o \
56 entries.o \
57 winfs.o \
58 shellfs.o \
59 pane.o \
60 desktop.o \
61 desktopbar.o \
62 taskbar.o \
63 startmenu.o \
64 shellservices.o \
65 traynotify.o \
66 quicklaunch.o \
67 favorites.o \
68 searchprogram.o \
69 settings.o \
70 i386-stub-win32.o \
71 xmlstorage.o
72
73 LIBS = gdi32 comctl32 msimg32 ole32 uuid
74 DELAYIMPORTS = oleaut32 wsock32
75
76 all: precomp.h.gch $(TARGET)
77
78 precomp.h.gch: *.h utility/*.h shell/*.h desktop/*.h
79 $(CXX) $(CFLAGS) precomp.h
80
81 $(TARGET): $(OBJECTS) $(PROGRAM)$(RES_SUFFIX) notifyhook.dll libexpat.dll
82 $(LINK) $(LFLAGS) -o $@ $^ $(addprefix -l,$(LIBS)) $(addprefix -l,$(DELAYIMPORTS))
83
84 $(PROGRAM)$(RES_SUFFIX): explorer_intres.rc res/*.bmp res/*.ico
85 windres $(RCFLAGS) -o $@ explorer_intres.rc
86
87 notifyhook.dll: notifyhook/notifyhook.c notifyhook/notifyhook.h
88 $(CC) -D_WIN32_IE=0x0600 -Wall -D_NOTIFYHOOK_IMPL -Os -s notifyhook/notifyhook.c -shared -o $@
89
90 clean:
91 rm -f $(TARGET) $(OBJECTS) $(PROGRAM)$(RES_SUFFIX) precomp.h.gch \
92 desktop/*.o dialogs/*.o shell/*.o taskbar/*.o utility/*.o