Fix some Rtl Prototype inconsistencies, more are in ntifs/winddk but i have fixed...
[reactos.git] / freeldr / fdebug / Makefile
1 #
2 # FreeLoader
3 # Copyright (C) 1999 - 2003 Brian Palmer <brianp@sginet.com>
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 #
19
20
21 FLAGS = -Wall
22
23 OBJS = rs232.o fdebug.o fdebug.res
24
25 .PHONY : clean
26
27 all: fdebug.exe
28
29 fdebug.exe: $(OBJS)
30 @echo ===================================================== LINKING fdebug
31 $(CC) $(FLAGS) -o fdebug.exe $(OBJS) -lgdi32 -lcomdlg32 -Wl,--subsystem,windows
32
33 fdebug.res: fdebug.rc resource.h
34 @echo ===================================================== Compiling $*
35 $(WINDRES) -o fdebug.res fdebug.rc -O coff
36
37 fdebug.o: fdebug.c rs232.h
38 @echo ===================================================== Compiling $*
39 $(CC) $(FLAGS) -o fdebug.o -c fdebug.c
40
41 rs232.o: rs232.c rs232.h
42 @echo ===================================================== Compiling $*
43 $(CC) $(FLAGS) -o rs232.o -c rs232.c
44
45 clean:
46 @-$(RM) *.o
47 @-$(RM) *.res
48 @-$(RM) *.exe
49 @echo Clean ALL done.