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