Adding upstream version 4.00~pre53+dfsg.
[syslinux-debian/hramrach.git] / mtools / Makefile
blob5f08b2d3a53022cc3ec88348236d2c85f530dccf
1 topdir = ..
2 include $(topdir)/MCONFIG
4 OPTFLAGS = -g -Os
5 INCLUDES = -I. -I.. -I../libfat -I../libinstaller
6 CFLAGS = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
7 LDFLAGS = -s
9 SRCS = syslinux.c \
10 ../libinstaller/fat.c \
11 ../libinstaller/syslxmod.c \
12 ../libinstaller/bootsect_bin.c \
13 ../libinstaller/ldlinux_bin.c \
14 $(wildcard ../libfat/*.c)
15 OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS)))
17 .SUFFIXES: .c .o .i .s .S
19 VPATH = .:../libfat:../libinstaller
21 all: installer
23 tidy dist:
24 -rm -f *.o *.i *.s *.a .*.d *.tmp
26 clean: tidy
27 -rm -f syslinux
29 spotless: clean
30 -rm -f *~
32 installer: syslinux
34 syslinux: $(OBJS)
35 $(CC) $(LDFLAGS) -o $@ $^
37 %.o: %.c
38 $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
39 %.i: %.c
40 $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
41 %.s: %.c
42 $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
44 -include .*.d *.tmp