Fixed missing module in makefile.
[reactos.git] / rosapps / winfile / Makefile
1 #
2 # ReactOS winfile
3 #
4 # Makefile
5 #
6 # Copyright (C) 2002 Robert Dickenson <robd@reactos.org>
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #
22
23 PATH_TO_TOP = ..
24
25 TARGET = winfile
26
27 BASE_CFLAGS = -DGCC -D_WIN32_IE=0x0400
28
29 RCFLAGS = -DGCC -D_WIN32_IE=0x0400
30
31
32 OBJS = about.o \
33 framewnd.o \
34 childwnd.o \
35 debug.o \
36 dialogs.o \
37 draw.o \
38 entries.o \
39 run.o \
40 settings.o \
41 splitpath.o \
42 sort.o \
43 utils.o \
44 treeview.o \
45 listview.o \
46 trace.o \
47 main.o
48
49 LIBS = -lgdi32 -luser32 -lkernel32 -lcomctl32
50
51 all: $(TARGET).exe
52
53 $(TARGET).res: $(TARGET).rc
54
55 $(TARGET).exe: $(OBJS) $(TARGET).coff
56 $(CC) -Wl,--subsystem,windows -o $(TARGET).exe $(OBJS) $(TARGET).coff $(LIBS)
57 $(NM) --numeric-sort $(TARGET).exe > $(TARGET).sym
58
59
60 about.o: about.c about.h resource.h
61
62 main.o: main.c main.h childwnd.h framewnd.h resource.h
63
64 childwnd.o: childwnd.c childwnd.h resource.h
65
66 framewnd.o: framewnd.c framewnd.h resource.h
67
68 debug.o: debug.c debug.h
69
70 font.o: font.c font.h
71
72 run.o: run.c run.h
73
74 setttings.o: setttings.c setttings.h resource.h
75
76 $(TARGET).o: $(TARGET).c $(TARGET).h resource.h
77
78
79 clean:
80 - $(RM) $(OBJS)
81 - $(RM) $(TARGET).exe
82 - $(RM) $(TARGET).sym
83 - $(RM) $(TARGET).coff
84
85 include $(PATH_TO_TOP)/rules.mak