-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
28 lines (19 loc) · 1.03 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
QEMU=qemu-system-i386
KOLIBRI_IMG_PATH=.
HDA_PATH=.
all: torrent.obj bittorrent_backend bittorrent_frontend_new bittorrent_backend_show
torrent.obj : torrent.asm torrent.inc tracker.asm peer.asm bencode.asm percent.asm
fasm $< $@
bittorrent_backend: bittorrent_backend.asm torrent.inc torrent_errors.inc
fasm $< $@
bittorrent_frontend_new: bittorrent_frontend_new.asm
fasm $< $@
bittorrent_backend_show: bittorrent_backend_show.asm
fasm $< $@
run : clean all
mcopy -vmoi $(KOLIBRI_IMG_PATH)/kolibri.img torrent.obj ::lib/torrent.obj
$(QEMU) -L . -m 4096 -fda $(KOLIBRI_IMG_PATH)/kolibri.img -boot a -vga vmware -net nic,model=rtl8139 -net user -soundhw ac97 -usb -usbdevice disk:format=raw:fat:rw:$(HDA_PATH) -usbdevice tablet
clean :
rm -f torrent.obj bittorrent_frontend_new bittorrent_backend bittorrent_backend_new bittorrent_backend_show
qemu_run:
$(QEMU) -L . -m 1024 -fda $(KOLIBRI_IMG_PATH)/kolibri.img -boot a -vga vmware -net nic,model=rtl8139 -net user -soundhw ac97 -usb -usbdevice disk:format=raw:/dev/sda -usbdevice tablet