1 ## -----------------------------------------------------------------------
3 ## Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
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, Inc., 53 Temple Place Ste 330,
8 ## Boston MA 02111-1307, USA; either version 2 of the License, or
9 ## (at your option) any later version; incorporated herein by reference.
11 ## -----------------------------------------------------------------------
14 ## Linux FAT/NTFS installer
18 MAKEDIR
= $(topdir
)/mk
19 include $(MAKEDIR
)/syslinux.mk
22 INCLUDES
= -I.
-I..
-I..
/libinstaller
23 CFLAGS
= $(GCCWARN
) -D_FILE_OFFSET_BITS
=64 $(OPTFLAGS
) $(INCLUDES
)
27 ..
/libinstaller
/syslxopt.c \
28 ..
/libinstaller
/syslxcom.c \
29 ..
/libinstaller
/setadv.c \
30 ..
/libinstaller
/advio.c \
31 ..
/libinstaller
/fs.c \
32 ..
/libinstaller
/syslxmod.c \
33 ..
/libinstaller
/bootsect_bin.c \
34 ..
/libinstaller
/ldlinux_bin.c
35 OBJS
= $(patsubst %.c
,%.o
,$(notdir $(SRCS
)))
37 .SUFFIXES
: .c .o .i .s .S
39 VPATH
= .
:..
/libinstaller
44 -rm -f
*.o
*.i
*.s
*.a .
*.d
*.tmp
47 -rm -f syslinux syslinux-nomtools
52 installer
: syslinux syslinux-nomtools
55 $(CC
) $(LDFLAGS
) -o
$@
$^
57 syslinux-nomtools
: syslinux
61 $(STRIP
) syslinux syslinux-nomtools
64 $(CC
) $(UMAKEDEPS
) $(CFLAGS
) -c
-o
$@
$<
66 $(CC
) $(UMAKEDEPS
) $(CFLAGS
) -E
-o
$@
$<
68 $(CC
) $(UMAKEDEPS
) $(CFLAGS
) -S
-o
$@
$<