forked from cheat-engine/cheat-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·101 lines (84 loc) · 2.42 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#SERIALPORT is the port to communicate with the debugger, usually 0x3f8, on db's system it's 0xef00
SERIALPORT=0 #release/no serialport build
#SERIALPORT=0x3f8 #bochs (gigabyte test system)
#SERIALPORT=0xbf00 #intel
#SERIALPORT=0xec00 #amd
#SERIALPORT=0xd010 #16 core test system
#SERIALPORT=0xfff0 #32 core test system
#SERIALPORT=0x2f8 #vmware test
#DISPLAYDEBUG if DISPLAYDEBUG==1 it means that all serial output will be sent to the screen instead (useful for cases where dbvm won't load AT ALL, not so much when it does)
DISPLAYDEBUG=0
#SERIALPORT=0xf010 #32 core test system
all:
# make -C vmm all SERIALPORT=${SERIALPORT} DISPLAYDEBUG=${DISPLAYDEBUG}
make -C vmm -f mkx all SERIALPORT=${SERIALPORT} DISPLAYDEBUG=${DISPLAYDEBUG}
make -C common all SERIALPORT=${SERIALPORT}
make -C parsevmmmap all SERIALPORT=${SERIALPORT}
parsevmmmap/parsevmmmap
make -C vmloader all SERIALPORT=${SERIALPORT}
make -C parsevmloadermap all SERIALPORT=${SERIALPORT}
parsevmloadermap/parsevmloadermap
make -C bootsector all SERIALPORT=${SERIALPORT}
make -C imagemaker all SERIALPORT=${SERIALPORT}
install: all
imagemaker/imagemaker
chmod 777 vmdisk.img
chmod 777 vmdisk144.img
sync
displaydebug: DISPLAYDEBUG=1
displaydebug: clean install
usb: install
@if [ -b /dev/sdc ] ;\
then \
dd if=vmdisk.img of=/dev/sdc ;\
sync ;\
else \
echo "/dev/sdc does not exist. Did you just run this without understanding makefiles? This could have really fucked you up" ;\
exit 1 ;\
fi
efiusb: install
cp vmdisk.img /media/eric/EC9B-5AFC/
sync
qemu: install
cp vmdisk.img /mntx
sync
@echo "copied files to /mntx"
disk: install
dd if=vmdisk.img of=/dev/fd0
sync
net: install
-rm -f /mnt/cebin/vmdisk.img
cp vmdisk.img /mnt/cebin
sync
cdimage: install
-mkdir iso
-mkdir iso/boot
cp vmdisk144.img iso/boot
cd iso
mkisofs -r -b boot/vmdisk144.img -c boot/boot.catalog -o vmcd.iso iso/
release: clean install cdimage
-rm -rf release
mkdir release
cp vmcd.iso release
cp vmdisk.img release
cp docs/readme.txt release
cp vmm/docs/vmcall.txt release
rar a dbvm.rar release/*
@echo "Your release file is ready"
clean:
@make -C imagemaker clean
@make -C parsevmloadermap clean
@make -C parsevmmmap clean
@make -C bootsector clean
@make -C vmloader clean
@make -C vmm clean
@make -C common clean
@-rm -f *.bin
@-rm -f *.img
@-rm -f *.map
@-rm -f *~
@-rm -rf iso
@-rm -rf release
@-rm -f vmcd.iso
@-rm -f dbvm.rar
@-rm -f *.elf