9 LFLAGS
=-g
-T
$(LSCRIPT
)
10 INCDIR
=$(GLIBC
)/include
11 CC
=gcc
-m32
-g
-O2
-Wall
-W
-c
-nostdinc
-fno-builtin
-fno-stack-protector
-I
$(INCDIR
)
13 LD
=ld -m elf_i386
-s
-nostdlib
15 OBJS
=start.o main.o net.o http.o
21 gcc
-owebcl_linux main.c net.c http.c
-DLINUX
26 cp
-f webcl .
/mnt
/webcl
34 rm -f
*.o webcl webcl.img
$(OBJS
)
44 start.o
: start.asm
$(MAKEDEP
)
46 main.o
: main.c
$(MAKEDEP
)
47 http.o
: http.c
$(MAKEDEP
)
50 webcl
: $(OBJS
) $(LIBC
) $(MAKEDEP
)
51 $(LD
) $(LFLAGS
) -o
$@
$(OBJS
) $(LIBC
)