]> Joshua Wise's Git repositories - netwatch.git/blob - netwatch/Makefile
f36ac5f6d44994ab72d0f495d707b4ca6bbd97b1
[netwatch.git] / netwatch / Makefile
1 -include ../config.mk
2 -include ../hardware/ich2/config.mk
3
4 CC=$(CROSS)gcc
5 CFLAGS+=-I../include -I../net -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
10
11 STUBOBJS=entry.o pagingstub-asm.o pagingstub.o
12
13 LWIP_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
40 OBJS =  $(CHIP_OBJS) \
41         ../pci/pci.o \
42         ../pci/pci-raw.o \
43         ../pci/pci-bother.o \
44         ../net/net.o \
45         ../net/http/fs.o \
46         ../net/http/httpd.o \
47         ../hardware/net/3c90x.o \
48         ../net/rfb.o \
49         ../hardware/video/tnt2.o \
50         ../hardware/video/fb.o \
51         ../hardware/video/generic.o \
52         ../hardware/video/text.o \
53         drivers.o \
54         ../lib/minilib.o \
55         ../lib/doprnt.o \
56         ../lib/sprintf.o \
57         ../lib/console.o \
58         ../lib/serial.o \
59         ../lib/crc32.o \
60         ../lib/demap.o \
61         ../lib/state.o \
62         ../lib/cpuid.o \
63         keyboard.o \
64         packet.o \
65         $(LWIP_OBJS) \
66         smi.o \
67         vga-overlay.o \
68         main.o \
69         traps.o \
70         firstrun.o
71
72
73 all: aseg.elf
74
75 aseg.elf: netwatch-large.lds $(STUBOBJS) $(OBJS)
76         $(CROSS)ld -o aseg.elf -T netwatch-large.lds $(STUBOBJS) $(OBJS)
77
78 clean:
79         rm -f $(OBJS) aseg.elf entry.bin entry.o
80
81 %.o: %.asm
82         nasm -o $@.bin $<
83         $(CROSS)objcopy -I binary -B i386 -O elf32-i386 $@.bin $@
84         rm -f $@.bin
This page took 0.030366 seconds and 4 git commands to generate.