]> Joshua Wise's Git repositories - netwatch.git/blame - aseg/Makefile
Merge nyus.joshuawise.com:/storage/git/netwatch
[netwatch.git] / aseg / Makefile
CommitLineData
31be35cd 1CC=gcc
6e6d4a8b
JP
2CFLAGS=-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
4LWIP_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
20ef1208
JW
29
30OBJS=counter.o firstrun.o ../pci/pci-raw.o ../lib/minilib.o ../lib/console.o \
4d898e0b
JW
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 \
e931b1fe
JW
33 ../ich2/ich2-timer.o ../pci/pci-bother.o ../net/3c90x.o keyboard.o \
34 ../lib/serial.o $(LWIP_OBJS)
035d7af7 35
f54c68a0
JW
36all: aseg.elf
37
31be35cd
JW
38aseg.elf: aseg.lds aseg.o $(OBJS)
39 ld -o aseg.elf -T aseg.lds $(OBJS)
7e16b8e6
JP
40
41clean:
42 rm -f $(OBJS) aseg.elf aseg.bin aseg.o
e5d94488
JP
43
44
45%.o: %.asm
46 nasm -o $@.bin $<
47 objcopy -I binary -B i386 -O elf32-i386 $@.bin $@
48 rm -f $@.bin
This page took 0.03184 seconds and 4 git commands to generate.