root/mtools/Makefile

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

Add NTFS filesystem support to Linux and Windows installers

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

  • Property mode set to 100755
Line 
1topdir = ..
2MAKEDIR = $(topdir)/mk
3include $(MAKEDIR)/syslinux.mk
4
5OPTFLAGS = -g -Os
6INCLUDES = -I. -I.. -I../libfat -I../libinstaller
7CFLAGS   = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
8LDFLAGS  = 
9
10SRCS     = syslinux.c \
11           ../libinstaller/fs.c \
12           ../libinstaller/syslxmod.c \
13           ../libinstaller/syslxopt.c \
14           ../libinstaller/setadv.c \
15           ../libinstaller/bootsect_bin.c \
16           ../libinstaller/ldlinux_bin.c \
17           $(wildcard ../libfat/*.c)
18OBJS     = $(patsubst %.c,%.o,$(notdir $(SRCS)))
19
20.SUFFIXES: .c .o .i .s .S
21
22VPATH = .:../libfat:../libinstaller
23
24all: installer
25
26tidy dist:
27        -rm -f *.o *.i *.s *.a .*.d *.tmp
28
29clean: tidy
30        -rm -f syslinux
31
32spotless: clean
33        -rm -f *~
34
35installer: syslinux
36
37syslinux: $(OBJS)
38        $(CC) $(LDFLAGS) -o $@ $^
39
40strip:
41        $(STRIP) syslinux
42
43%.o: %.c
44        $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
45%.i: %.c
46        $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
47%.s: %.c
48        $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
49
50-include .*.d *.tmp
Note: See TracBrowser for help on using the browser.