re-worked ndis to do device detection from a win2k-style registry enum database,...
[reactos.git] / freeldr / Makefile
1 #
2 # FreeLoader
3 # Copyright (C) 1999, 2000, 2001 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 # Windows is default host environment
21 ifeq ($(HOST),)
22 HOST = mingw32-windows
23 endif
24
25 #
26 # Choose various options
27 #
28 ifeq ($(HOST),mingw32-linux)
29 RM = rm -f
30 CP = cp -f
31 MKDIR = mkdir
32 SEP = /
33 else
34 RM = cmd /C del
35 CP = copy /Y
36 MKDIR = md
37 SEP = \$(EMPTY_VAR)
38 endif
39
40 NASM_CMD = nasm
41 NFLAGS = -fwin32 -dwin32
42 BIN2C = ..$(SEP)tools$(SEP)bin2c
43 TOOLSDIR = ..$(SEP)tools
44
45 all:
46 $(MAKE) -C tools
47 $(MAKE) -C bootsect
48 $(MAKE) -C freeldr
49 $(MAKE) -C install
50 $(MAKE) -C fdebug
51
52 clean:
53 $(MAKE) -C bootsect clean
54 $(MAKE) -C freeldr clean
55 $(MAKE) -C install clean
56 $(MAKE) -C fdebug clean
57 $(MAKE) -C tools clean
58
59 .PHONY : clean