]> Joshua Wise's Git repositories - netwatch.git/blob - aseg/Makefile
Add a first cut at text.
[netwatch.git] / aseg / Makefile
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 \
34         ../lib/serial.o $(LWIP_OBJS)
35
36 all: aseg.elf
37
38 aseg.elf: aseg.lds aseg.o $(OBJS)
39         ld -o aseg.elf -T aseg.lds $(OBJS)
40
41 clean:
42         rm -f $(OBJS) aseg.elf aseg.bin aseg.o
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.028007 seconds and 4 git commands to generate.