]>
Commit | Line | Data |
---|---|---|
1 | CC=gcc | |
2 | CFLAGS=-I../include -I../include/raw -I../lwip/src/include -I../lwip/src/include/ipv4 -nostdlib -nostdinc -fno-builtin -D__RAW__ -Wall -Werror -pedantic -ansi -std=gnu99 | |
3 | ||
4 | LWIP_OBJS = \ | |
5 | ../lwip/src/core/dhcp.o \ | |
6 | ../lwip/src/core/dns.o \ | |
7 | ../lwip/src/core/init.o \ | |
8 | ../lwip/src/core/ipv4/autoip.o \ | |
9 | ../lwip/src/core/ipv4/icmp.o \ | |
10 | ../lwip/src/core/ipv4/igmp.o \ | |
11 | ../lwip/src/core/ipv4/inet.o \ | |
12 | ../lwip/src/core/ipv4/inet_chksum.o \ | |
13 | ../lwip/src/core/ipv4/ip.o \ | |
14 | ../lwip/src/core/ipv4/ip_addr.o \ | |
15 | ../lwip/src/core/ipv4/ip_frag.o \ | |
16 | ../lwip/src/core/mem.o \ | |
17 | ../lwip/src/core/memp.o \ | |
18 | ../lwip/src/core/netif.o \ | |
19 | ../lwip/src/core/pbuf.o \ | |
20 | ../lwip/src/core/raw.o \ | |
21 | ../lwip/src/core/stats.o \ | |
22 | ../lwip/src/core/sys.o \ | |
23 | ../lwip/src/core/tcp.o \ | |
24 | ../lwip/src/core/tcp_in.o \ | |
25 | ../lwip/src/core/tcp_out.o \ | |
26 | ../lwip/src/core/udp.o \ | |
27 | ../lwip/src/netif/etharp.o \ | |
28 | ../lwip/src/netif/ethernetif.o | |
29 | ||
30 | OBJS=counter.o firstrun.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o \ | |
31 | ../ich2/smram-ich2.o ../ich2/smi.o vga-overlay.o packet.o \ | |
32 | ../lib/sprintf.o ../lib/doprnt.o ../pci/pci.o ../net/net.o \ | |
33 | ../ich2/ich2-timer.o ../pci/pci-bother.o ../net/3c90x.o keyboard.o $(LWIP_OBJS) | |
34 | ||
35 | all: aseg.elf | |
36 | ||
37 | aseg.elf: aseg.lds aseg.o $(OBJS) | |
38 | ld -o aseg.elf -T aseg.lds $(OBJS) | |
39 | ||
40 | clean: | |
41 | rm -f $(OBJS) aseg.elf aseg.bin aseg.o | |
42 | ||
43 | ||
44 | %.o: %.asm | |
45 | nasm -o $@.bin $< | |
46 | objcopy -I binary -B i386 -O elf32-i386 $@.bin $@ | |
47 | rm -f $@.bin |