Releasing debian version 6.00~pre4+dfsg-7.
[syslinux-debian/hramrach.git] / extlinux / Makefile
blob91486880af3ade9a6816ecf7c43b573b7464f6f4
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.
11 ## -----------------------------------------------------------------------
14 ## Linux vfat, ntfs, ext2/ext3/ext4 and btrfs installer
17 include $(MAKEDIR)/syslinux.mk
19 OPTFLAGS = -g -Os
20 INCLUDES = -I$(SRC) -I$(objdir) -I$(SRC)/../libinstaller
21 CFLAGS = $(GCCWARN) -Wno-sign-compare -D_FILE_OFFSET_BITS=64 \
22 $(OPTFLAGS) $(INCLUDES)
23 LDFLAGS =
25 SRCS = main.c \
26 mountinfo.c \
27 ../libinstaller/syslxmod.c \
28 ../libinstaller/syslxopt.c \
29 ../libinstaller/syslxcom.c \
30 ../libinstaller/setadv.c \
31 ../libinstaller/advio.c \
32 ../libinstaller/bootsect_bin.c \
33 ../libinstaller/ldlinuxc32_bin.c \
34 ../libinstaller/ldlinux_bin.c
35 OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS)))
37 .SUFFIXES: .c .o .i .s .S
39 VPATH = $(SRC):$(SRC)/../libinstaller:$(OBJ)/../libinstaller
41 all: installer
43 tidy dist:
44 -rm -f *.o *.i *.s *.a .*.d *.tmp
46 clean: tidy
47 -rm -f extlinux
49 spotless: clean
50 -rm -f *~
52 installer: extlinux
54 extlinux: $(OBJS)
55 $(CC) $(LDFLAGS) -o $@ $^
57 strip:
58 $(STRIP) extlinux
60 %.o: %.c
61 $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
62 %.i: %.c
63 $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
64 %.s: %.c
65 $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
67 -include .*.d *.tmp