-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwatcom_f.mak
54 lines (45 loc) · 1.31 KB
/
watcom_f.mak
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
# Watcom Makefile for building Lua 5.4.6
# This is the DOS 4G flat model version
# There are no configurable parts to this file
# Run with `wmake -f watcom_f.mak`
objs = lapi.obj lctype.obj lfunc.obj lmathlib.obj loslib.obj &
ltable.obj lundump.obj lauxlib.obj ldblib.obj lgc.obj lmem.obj &
lparser.obj ltablib.obj lutf8lib.obj lbaselib.obj ldebug.obj &
linit.obj loadlib.obj lstate.obj ltm.obj lvm.obj lcode.obj &
ldo.obj liolib.obj lobject.obj lstring.obj lzio.obj &
lcorolib.obj ldump.obj llex.obj lopcodes.obj lstrlib.obj
lua_obj = lua.obj
luac_obj = luac.obj
all: lua4g.exe luac4g.exe dist .SYMBOLIC
!ifdef __UNIX__
cp lua4g.exe luac4g.exe dist/bin
!else
copy lua4g.exe dist\bin
copy luac4g.exe dist\bin
!endif
lua4g.exe: $(objs) $(lua_obj)
*wlink NAME $@ SYS dos4g OPT st=8192 FILE {$(objs) $(lua_obj)}
luac4g.exe: $(objs) $(luac_obj)
*wlink NAME $@ SYS dos4g OPT st=8192 FILE {$(objs) $(luac_obj)}
.c.obj:
*wcc386 -q -bt=dos4g -mf -5 -d0 -osr -zc -fo=$@ $[&.c
clean: .SYMBOLIC
!ifdef __UNIX__
rm *.obj *.exe
!else
del *.obj
del *.exe
!endif
cleandist: .SYMBOLIC clean
!ifdef __UNIX__
rm -r dist
!else
deltree /Y dist
!endif
dist:
mkdir dist
!ifdef __UNIX__
mkdir dist/bin
!else
mkdir dist\bin
!endif