File: Makefile.wat

package info (click to toggle)
sarien 0.7.0-1
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 1,864 kB
  • ctags: 2,543
  • sloc: ansic: 18,542; sh: 2,363; cpp: 1,371; makefile: 523; objc: 438; perl: 51
file content (70 lines) | stat: -rw-r--r-- 1,655 bytes parent folder | download
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
HOME=.
!include $(HOME)\src\graphics\msdos\watcom.dep

all: core drivers sarien

core: .symbolic
	@echo Building core engine
	cd src\core
	wmake -h -f makefile.wat HOME=..\..

drivers: .symbolic
	@echo Building master graphics driver
	cd src\graphics\msdos
	wmake -h -f makefile.wat HOME=..\..\..
	@echo Building filesys driver
	cd src\filesys\msdos
	wmake -h -f makefile.wat HOME=..\..\..
	cd ..\..\..
	@echo Building sound driver
	cd src\sound\dummy
	wmake -h -f makefile.wat HOME=..\..\..
	cd ..\..\..

clean: .symbolic
	@if exist *.bak @del *.bak
	@if exist bin\*.exe @del bin\*.exe
	@echo Cleaning core
	cd src\core
	wmake -h -f makefile.wat clean HOME=..\..
	@echo Cleaning msdos code
	cd src\graphics\msdos
	wmake -h -f makefile.wat clean HOME=..\..\..
	@echo Cleaning sound driver
	cd src\sound\dummy
	wmake -h -f makefile.wat clean HOME=..\..\..
	cd ..\..\..
	@echo Cleaning filegsys
	cd src\filesys\msdos
	wmake -h -f makefile.wat clean HOME=..\..\..
	cd ..\..\..
	@echo Cleaning Libs
	cd lib
	@del *.lib
	cd ..

sarien: .symbolic
	@echo Creating binary
	%create test.lnk
	%append test.lnk system $(sys)
	%append test.lnk $(lflags)
	%append test.lnk name bin\sarien.exe
	%append test.lnk library lib\agi_core.lib
	%append test.lnk library lib\driver.lib
	%append test.lnk library lib\sound.lib
	%append test.lnk library lib\fileglob.lib
	%append test.lnk file src\core\main.obj
	wlink @test.lnk

.error: .symbolic
	@echo.
	@echo An Error Occured
	@if exist test.lnk @del test.lnk

.after: .symbolic
	@if exist test.lnk @del test.lnk

tarball: .symbolic
	wmake -h -f makefile.wat clean
	cd ..
	tar cvfz sarien-$(VERSION).tar.gz sarien-$(VERSION)