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