root/linux/Makefile

Revision b0ac906b283b428ba1c7f35fe1e71a84b3d3d9c6, 1.7 KB (checked in by Paulo Alcantara <pcacjr@…>, 8 months ago)

Add NTFS filesystem support to Linux and Windows installers

Signed-off-by: Paulo Alcantara <pcacjr@…>

  • Property mode set to 100644
Line 
1## -----------------------------------------------------------------------
2##
3##   Copyright 2001-2008 H. Peter Anvin - All Rights Reserved
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, 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.
10##
11## -----------------------------------------------------------------------
12
13##
14## Linux FAT/NTFS installer
15##
16
17topdir = ..
18MAKEDIR = $(topdir)/mk
19include $(MAKEDIR)/syslinux.mk
20
21OPTFLAGS = -g -Os
22INCLUDES = -I. -I.. -I../libinstaller
23CFLAGS   = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
24LDFLAGS  = 
25
26SRCS     = syslinux.c \
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
35OBJS     = $(patsubst %.c,%.o,$(notdir $(SRCS)))
36
37.SUFFIXES: .c .o .i .s .S
38
39VPATH = .:../libinstaller
40
41all: installer
42
43tidy dist:
44        -rm -f *.o *.i *.s *.a .*.d *.tmp
45
46clean: tidy
47        -rm -f syslinux syslinux-nomtools
48
49spotless: clean
50        -rm -f *~
51
52installer: syslinux syslinux-nomtools
53
54syslinux: $(OBJS)
55        $(CC) $(LDFLAGS) -o $@ $^
56
57syslinux-nomtools: syslinux
58        ln -f $< $@
59
60strip:
61        $(STRIP) syslinux syslinux-nomtools
62
63%.o: %.c
64        $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
65%.i: %.c
66        $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
67%.s: %.c
68        $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
69
70-include .*.d *.tmp
Note: See TracBrowser for help on using the browser.