e2f6ab4f55a0e32e418d95afe197a6326a6889bf
[reactos.git] / reactos / boot / 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 PATH_TO_TOP = ../../..
21
22 include ../rules.mak
23
24 FLAGS = -Wall
25
26 OBJS = rs232.o fdebug.o fdebug.res
27
28 .PHONY : clean
29
30 all: fdebug.exe
31
32 fdebug.exe: $(OBJS)
33 @echo ===================================================== LINKING fdebug
34 $(CC) $(FLAGS) -o fdebug.exe $(OBJS) -lgdi32 -lcomdlg32 -Wl,--subsystem,windows
35
36 fdebug.res: fdebug.rc resource.h
37 @echo ===================================================== Compiling $*
38 $(RC) -o fdebug.res fdebug.rc -O coff
39
40 fdebug.o: fdebug.c rs232.h
41 @echo ===================================================== Compiling $*
42 $(CC) $(FLAGS) -o fdebug.o -c fdebug.c
43
44 rs232.o: rs232.c rs232.h
45 @echo ===================================================== Compiling $*
46 $(CC) $(FLAGS) -o rs232.o -c rs232.c
47
48 clean:
49 @-$(RM) *.o
50 @-$(RM) *.res
51 @-$(RM) *.exe
52 @echo Clean ALL done.