Add routine to initialize and test for the FPU.
[syslinux.git] / extlinux / Makefile
bloba450a3dc49a4164f06c7ec12c73c62f25577fe85
1 CC = gcc
2 OPTFLAGS = -g -Os
3 INCLUDES = -I. -I.. -I../libfat
4 CFLAGS = -W -Wall -Wno-sign-compare -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
5 LDFLAGS = -s
7 SRCS = extlinux.c ../extlinux_bss_bin.c ../extlinux_sys_bin.c
8 OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS)))
10 .SUFFIXES: .c .o .i .s .S
12 VPATH = .:..
14 all: installer
16 tidy:
17 -rm -f *.o *.i *.s *.a .*.d
19 clean: tidy
20 -rm -f extlinux
22 spotless: clean
23 -rm -f *~
25 installer: extlinux
27 extlinux: $(OBJS)
28 $(CC) $(LDFLAGS) -o $@ $^
30 %.o: %.c
31 $(CC) -Wp,-MT,$@,-MMD,.$@.d $(CFLAGS) -c -o $@ $<
32 %.i: %.c
33 $(CC) $(CFLAGS) -E -o $@ $<
34 %.s: %.c
35 $(CC) $(CFLAGS) -S -o $@ $<
37 -include .*.d