4 MAKEFILE=makefile-zexos
\r
8 LSCRIPT =./platform/zexos/link.ld
\r
9 LFLAGS =-g -T$(LSCRIPT)
\r
10 INCDIR =$(GLIBC)/include
\r
11 CC =gcc -m32 -g -O2 -Wall -c -nostdinc -fno-builtin -I$(INCDIR) -Iplatform/zexos
\r
13 LD =ld -m elf_i386 -s -nostdlib
\r
14 LIBC =$(GLIBC)/libc.a
\r
15 OBJS =platform/zexos/start.o main.o net.o client.o proto.o game.o rules.o
\r
23 cp -f openchess ./mnt/openchess
\r
28 rm -f *.o openchess $(OBJS)
\r
39 platform/zexos/start.o: platform/zexos/start.asm $(MAKEDEP)
\r
41 main.o: main.c $(MAKEDEP)
\r
42 net.o: net.c $(MAKEDEP)
\r
43 client.o: client.c $(MAKEDEP)
\r
44 proto.o: proto.c $(MAKEDEP)
\r
45 game.o: game.c $(MAKEDEP)
\r
46 rules.o: rules.c $(MAKEDEP)
\r
49 openchess: $(OBJS) $(LIBC) $(MAKEDEP)
\r
50 $(LD) $(LFLAGS) -o$@ $(OBJS) $(LIBC)