-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
executable file
·54 lines (41 loc) · 1.1 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
# uncomment for debug version
!ifdef %DEBUG
DEBUG = 1
!endif
# Machine type see ow docs
MACHINE= -6r
#Optimization Fastest possible -otexan
OPT = -otexan
CC = wcc386
LD = wlink
INCLUDE = .\src;$(%watcom)\h;$(%watcom)\h\os2
# the wcd option below surpresses W302 which is okay
!ifdef DEBUG
CFLAGS = -i=$(INCLUDE) -za99 -d3 -wx -od -DDEBUG $(MACHINE) -bm -bt=OS2
LDFLAGS = d all op map,symf
!else
CFLAGS = -i=$(INCLUDE) -za99 -d0 -wx -zq -wcd=302 $(OPT) $(MACHINE) -bm -bt=OS2
LDFLAGS = op map,symf
!endif
all: mkmsgf.exe mkmsgd.exe
mkmsgf.exe:
$(CC) $(CFLAGS) src\mkmsgf.c
$(LD) NAME mkmsgf SYS os2v2 $(LDFLAGS) FILE mkmsgf.obj
!ifndef DEBUG
-@lxlite mkmsgf.exe
!endif
mkmsgd.exe:
$(CC) $(CFLAGS) src\mkmsgd.c
$(LD) NAME mkmsgd SYS os2v2 $(LDFLAGS) FILE mkmsgd.obj
!ifndef DEBUG
-@lxlite mkmsgd.exe
!endif
debug: .SYMBOLIC
@set DEBUG=1
@wmake
clean: .SYMBOLIC
CLEANEXTS = obj exe err lst map sym msg
@for %a in ($(CLEANEXTS)) do -@rm *.%a
release: .SYMBOLIC
RELEXTS = obj err lst map sym msg
@for %a in ($(RELEXTS)) do -@rm *.%a