source: bootcd/isolinux/syslinux-6.03/mtools/Makefile

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100755
File size: 1.0 KB
Line 
1include $(MAKEDIR)/syslinux.mk
2
3OPTFLAGS = -g -Os
4INCLUDES = -I$(SRC) -I$(objdir) -I$(SRC)/../libfat -I$(SRC)/../libinstaller
5CFLAGS   = $(GCCWARN) -D_FILE_OFFSET_BITS=64 $(OPTFLAGS) $(INCLUDES)
6LDFLAGS  =
7
8SRCS     = syslinux.c \
9           ../libinstaller/fs.c \
10           ../libinstaller/syslxmod.c \
11           ../libinstaller/syslxopt.c \
12           ../libinstaller/setadv.c \
13           ../libinstaller/bootsect_bin.c \
14           ../libinstaller/ldlinux_bin.c \
15           ../libinstaller/ldlinuxc32_bin.c \
16           $(wildcard $(SRC)/../libfat/*.c)
17OBJS     = $(patsubst %.c,%.o,$(notdir $(SRCS)))
18
19.SUFFIXES: .c .o .i .s .S
20
21VPATH = $(SRC):$(SRC)/../libfat:$(SRC)/../libinstaller:$(OBJ)/../libinstaller
22
23all: installer
24
25tidy dist:
26        -rm -f *.o *.i *.s *.a .*.d *.tmp
27
28clean: tidy
29        -rm -f syslinux
30
31spotless: clean
32        -rm -f *~
33
34installer: syslinux
35
36syslinux: $(OBJS)
37        $(CC) $(LDFLAGS) -o $@ $^
38
39strip:
40        $(STRIP) syslinux
41
42%.o: %.c
43        $(CC) $(UMAKEDEPS) $(CFLAGS) -c -o $@ $<
44%.i: %.c
45        $(CC) $(UMAKEDEPS) $(CFLAGS) -E -o $@ $<
46%.s: %.c
47        $(CC) $(UMAKEDEPS) $(CFLAGS) -S -o $@ $<
48
49-include .*.d
Note: See TracBrowser for help on using the repository browser.