aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux/Makefile
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-20 00:15:37 +0000
committerhpa <hpa>2004-12-20 00:15:37 +0000
commit24e644726fb0fea76bb6db2f25f5343b257e950c (patch)
treec06fe1f4da76fe6f1950a6fba2ff091b43d5c6e8 /extlinux/Makefile
parent914fe1ed468df8c08cf321f829349cff4ea9066f (diff)
downloadsyslinux.git-24e644726fb0fea76bb6db2f25f5343b257e950c.tar.gz
syslinux.git-24e644726fb0fea76bb6db2f25f5343b257e950c.tar.xz
syslinux.git-24e644726fb0fea76bb6db2f25f5343b257e950c.zip
extlinux installer.
Diffstat (limited to 'extlinux/Makefile')
-rw-r--r--extlinux/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/extlinux/Makefile b/extlinux/Makefile
new file mode 100644
index 00000000..3358f5af
--- /dev/null
+++ b/extlinux/Makefile
@@ -0,0 +1,40 @@
+CC = gcc
+OPTFLAGS = -g -Os
+INCLUDES = -I. -I.. -I../libfat
+CFLAGS = -W -Wall -Wno-sign-compare -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
+LDFLAGS = -s
+
+SRCS = extlinux.c ../extlinux_bss_bin.c ../extlinux_sys_bin.c
+OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS)))
+
+.SUFFIXES: .c .o .i .s .S
+
+VPATH = .:..
+
+all: installer
+
+tidy:
+ -rm -f *.o *.i *.s *.a .*.d
+
+clean: tidy
+ -rm -f extlinux
+
+spotless: clean
+ -rm -f *~
+
+installer: extlinux
+
+extlinux: $(OBJS)
+ $(CC) $(LDFLAGS) -o $@ $^
+
+%.o: %.c
+ $(CC) -Wp,-MT,$@,-MMD,.$@.d $(CFLAGS) -c -o $@ $<
+%.i: %.c
+ $(CC) $(CFLAGS) -E -o $@ $<
+%.s: %.c
+ $(CC) $(CFLAGS) -S -o $@ $<
+
+-include .*.d
+
+
+