]>
Commit | Line | Data |
---|---|---|
1 | CC=gcc | |
2 | CFLAGS=-I../include -I../include/raw \ | |
3 | -I../lwip/src/include -I../lwip/src/include/ipv4 \ | |
4 | -nostdlib -nostdinc -fno-builtin -D__RAW__ \ | |
5 | -Wall -Werror -std=gnu99 | |
6 | ||
7 | STUBOBJS=entry.o pagingstub-asm.o pagingstub.o | |
8 | ||
9 | LWIP_OBJS = \ | |
10 | ../lwip/src/core/dhcp.o \ | |
11 | ../lwip/src/core/dns.o \ | |
12 | ../lwip/src/core/init.o \ | |
13 | ../lwip/src/core/ipv4/autoip.o \ | |
14 | ../lwip/src/core/ipv4/icmp.o \ | |
15 | ../lwip/src/core/ipv4/igmp.o \ | |
16 | ../lwip/src/core/ipv4/inet.o \ | |
17 | ../lwip/src/core/ipv4/inet_chksum.o \ | |
18 | ../lwip/src/core/ipv4/ip.o \ | |
19 | ../lwip/src/core/ipv4/ip_addr.o \ | |
20 | ../lwip/src/core/ipv4/ip_frag.o \ | |
21 | ../lwip/src/core/mem.o \ | |
22 | ../lwip/src/core/memp.o \ | |
23 | ../lwip/src/core/netif.o \ | |
24 | ../lwip/src/core/pbuf.o \ | |
25 | ../lwip/src/core/raw.o \ | |
26 | ../lwip/src/core/stats.o \ | |
27 | ../lwip/src/core/sys.o \ | |
28 | ../lwip/src/core/tcp.o \ | |
29 | ../lwip/src/core/tcp_in.o \ | |
30 | ../lwip/src/core/tcp_out.o \ | |
31 | ../lwip/src/core/udp.o \ | |
32 | ../lwip/src/netif/etharp.o \ | |
33 | ../lwip/src/netif/ethernetif.o | |
34 | ||
35 | ||
36 | OBJS = ../ich2/smi.o \ | |
37 | ../ich2/smram-ich2.o \ | |
38 | ../ich2/ich2-timer.o \ | |
39 | ../pci/pci.o \ | |
40 | ../pci/pci-raw.o \ | |
41 | ../pci/pci-bother.o \ | |
42 | ../net/net.o \ | |
43 | ../net/http/fs.o \ | |
44 | ../net/http/httpd.o \ | |
45 | ../net/3c90x.o \ | |
46 | ../net/rfb.o \ | |
47 | ../video/tnt2.o \ | |
48 | ../video/fb.o \ | |
49 | ../video/checksumrect.o \ | |
50 | ../video/text.o \ | |
51 | drivers.o \ | |
52 | ../lib/minilib.o \ | |
53 | ../lib/doprnt.o \ | |
54 | ../lib/sprintf.o \ | |
55 | ../lib/console.o \ | |
56 | ../lib/serial.o \ | |
57 | keyboard.o \ | |
58 | ../aseg/packet.o \ | |
59 | $(LWIP_OBJS) \ | |
60 | smi.o \ | |
61 | vga-overlay.o \ | |
62 | main.o \ | |
63 | traps.o \ | |
64 | firstrun.o | |
65 | ||
66 | ||
67 | all: aseg.elf | |
68 | ||
69 | aseg.elf: aseg.lds $(STUBOBJS) $(OBJS) | |
70 | ld -o aseg.elf -T aseg.lds $(STUBOBJS) $(OBJS) | |
71 | ||
72 | clean: | |
73 | rm -f $(OBJS) aseg.elf entry.bin entry.o | |
74 | ||
75 | %.o: %.asm | |
76 | nasm -o $@.bin $< | |
77 | objcopy -I binary -B i386 -O elf32-i386 $@.bin $@ | |
78 | rm -f $@.bin |