merged start menus of the same name (e.g. "All Users\Startup" with "<User>\Startup")
[reactos.git] / reactos / subsys / system / explorer / Makefile.MinGW
1 #
2 # ReactOS explorer
3 #
4 # Makefile.MinGW
5 #
6
7 CC = gcc
8 CXX = g++
9 LINK = g++
10
11 CFLAGS = -DWIN32 -D_ROS_ -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501 -fexceptions -Wall
12 RCFLAGS = -DWIN32 -D_ROS_
13 LFLAGS = -Wl,--subsystem,windows
14
15 ifdef DEBUG
16 CFLAGS += -D_DEBUG -g
17 RCFLAGS += -D_DEBUG
18 LFLAGS += -g
19 else
20 CFLAGS += -DNDEBUG -Os
21 RCFLAGS += -DNDEBUG
22 LFLAGS += -s
23 endif
24
25 ifdef UNICODE
26 CFLAGS += -DUNICODE
27 # LFLAGS+= -Wl,--entry,_wWinMain@16
28 endif
29
30 CXXFLAGS = $(CFLAGS)
31
32 EXEC_SUFFIX = .exe
33 RES_SUFFIX = .coff
34
35 VPATH = shell utility taskbar desktop
36
37 PROGRAM = explorer
38
39 TARGET = $(PROGRAM)$(EXEC_SUFFIX)
40
41 OBJECTS = \
42 startup.o \
43 shellclasses.o \
44 utility.o \
45 window.o \
46 dragdropimpl.o \
47 explorer.o \
48 entries.o \
49 winfs.o \
50 unixfs.o \
51 shellfs.o \
52 mainframe.o \
53 filechild.o \
54 pane.o \
55 shellbrowser.o \
56 desktop.o \
57 desktopbar.o \
58 taskbar.o \
59 startmenu.o \
60 traynotify.o \
61 quicklaunch.o
62
63 LIBS = gdi32 comctl32 ole32 uuid
64
65 all: $(TARGET)
66
67 $(TARGET): $(OBJECTS) $(PROGRAM)$(RES_SUFFIX)
68 $(LINK) $(LFLAGS) -o $@ $^ $(addprefix -l,$(LIBS))
69
70 explorer$(RES_SUFFIX): $(PROGRAM)_intres.rc
71 windres $(RCFLAGS) -o $@ $^
72
73 clean:
74 rm -f $(TARGET) $(OBJECTS) $(PROGRAM)$(RES_SUFFIX)
75