2 CCFLAGS
=-m32
-Wall
-Wextra
-Werror
-fno-stack-protector
-nostdinc
-fno-builtin
6 LDFLAGS
=-melf_i386
-T link.
ld
7 LIBS
=$(shell $(CC
) $(CCFLAGS
) -print-libgcc-file-name
)
11 mmap.elf
: start.o mmap.o libc.o
12 $(LD
) $(LDFLAGS
) -o
$@
$^
$(LIBS
)
15 $(CC
) $(CCFLAGS
) -c
-o
$@
$^
18 $(CC
) $(ASFLAGS
) -c
-o
$@
$^