ccb9196201b08280103cb50f086c3e427cf73fa5
[reactos.git] / reactos / subsys / system / explorer / Makefile.MinGW
1 #
2 # ReactOS explorer
3 #
4 # Makefile.MinGW
5 #
6
7
8 CC = gcc
9 CXX = g++
10 LINK = g++
11
12 CFLAGS = -DWIN32 -D_ROS_ -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501 -fexceptions -Wall
13 CXXFLAGS= $(CFLAGS)
14 RCFLAGS = -DWIN32 -D_ROS_
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
23 RCFLAGS += -DNDEBUG
24 LFLAGS += -s
25 endif
26
27 ifdef UNICODE
28 CFLAGS += -DUNICODE
29 # LFLAGS+= -Wl,--entry,_wWinMain@16
30 endif
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) *.o *$(RES_SUFFIX)
75