-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
38 lines (29 loc) · 1.41 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
.PHONY: clean release release_
all: adtrack2
release: release_
rm -rf release/adtrack-*/
echo -e "\n\n\nyour files are ready at release/\n"
release_: all
rm -rf release
mkdir release
mkdir release/src
cp -r *.pas *.inc Makefile TODO *.bat sdl.dll sdl utils package release/src/
cp -r package release/bin
cp adtrack2 release/bin/
rm -f release/bin/techinfo.*
cd release; \
echo "which minor version is this? NOTE that i assume 2.4.xx and that you're on debian wheezy x86!"; \
read ver; \
mv src adtrack-2.4.$${ver}-linux-src; \
mv bin adtrack-2.4.$${ver}-linux-bin-debian-wheezy-x86; \
tar cvzf adtrack-2.4.$${ver}-linux-src.tar.gz adtrack-2.4.$${ver}-linux-src; \
tar cvzf adtrack-2.4.$${ver}-linux-bin-debian-wheezy-x86.tar.gz adtrack-2.4.$${ver}-linux-bin-debian-wheezy-x86;
clean:
rm -f *.o *.s *.res *.ppu *.map *.fpd *.sym *.cfg adtrack2
rm -f sdl/*.o sdl/*.ppu
mrproper: clean
rm -rf bin/
mkdir bin/
rm -rf release/
adtrack2: adt2data.pas adt2ext2.pas adt2ext3.pas adt2ext4.pas adt2ext5.pas adt2extn.pas adt2keyb.pas adt2opl3.pas adt2pack.pas adt2sys.pas adt2text.pas adt2unit.pas adt2vesa.pas adtrack2.pas depackio.pas dialogio.pas iloaders.inc iloadins.inc instedit.inc ipattern.inc ipattord.inc iss_tim.pas menulib1.pas menulib2.pas opl3emu.pas parserio.pas realtime.inc stringio.pas txtscrio.pas typcons1.inc typcons2.inc
fpc -O2 -OpPENTIUM2 -Ccpascal -Mtp -Rintel -Fusdl adtrack2.pas -oadtrack2