aboutsummaryrefslogtreecommitdiffstats
path: root/unix/Makefile
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-15 10:51:18 +0000
committerhpa <hpa>2004-12-15 10:51:18 +0000
commit95deb2509c3f9916527044751ca1221fa62f3b26 (patch)
tree85ed778448692354b23a858af689ce4ff5691187 /unix/Makefile
parent907b549d585c74537b300c188b00d3a56d36cc7f (diff)
downloadsyslinux-elf-95deb2509c3f9916527044751ca1221fa62f3b26.tar.gz
syslinux-elf-95deb2509c3f9916527044751ca1221fa62f3b26.tar.xz
syslinux-elf-95deb2509c3f9916527044751ca1221fa62f3b26.zip
More adjustment to the Brave New World<TM>
Diffstat (limited to 'unix/Makefile')
-rw-r--r--unix/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/unix/Makefile b/unix/Makefile
index 9ba5e554..12c5cf9d 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -1,8 +1,8 @@
CC = gcc
-OPTFLAGS = -g -O
+OPTFLAGS = -g -Os
INCLUDES = -I. -I.. -I../libfat
CFLAGS = -W -Wall -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
-LDFLAGS =
+LDFLAGS = -s
SRCS = syslinux.c ../syslxmod.c ../bootsect_bin.c ../ldlinux_bin.c $(wildcard ../libfat/*.c)
OBJS = $(patsubst %.c,%.o,$(notdir $(SRCS)))
@@ -20,12 +20,16 @@ clean: tidy
-rm -f syslinux
spotless: clean
+ -rm -f *~
-installer: syslinux
+installer: syslinux syslinux-nomtools
syslinux: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^
+syslinux-nomtools: syslinux
+ cp -f $< $@
+
%.o: %.c
$(CC) -Wp,-MT,$@,-MMD,.$@.d $(CFLAGS) -c -o $@ $<
%.i: %.c