home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
libcvers.zip
/
article_appendix
/
example
/
makefile.wcs
< prev
next >
Wrap
Makefile
|
2002-03-18
|
702b
|
35 lines
# Watcom example - _System mode (use NMAKE)
!ifndef LIBCPATH
!error Add LIBCPATH to NMAKE command line, e.g. LIBCPATH=x:\toolkit\h\libc
!endif
CC = wcc386.exe
LINKER = link386.exe
!ifdef DEBUG
WCC_ADD = -d2 -en
CLNKDBG = /DE /MAP:full
!else
WCC_ADD = -os
!endif
WCCLIBC = -i=$(LIBCPATH) -D__EXTENDED__ -zl -D_LNK_CONV=_System
COPT = -fpi87 -5s -fo=$@ -s -i=. $(WCCDBG) $(WCCLIBC) -ze
LIBS = ..\lib\owatcoms+libcss+os2386
CNAME = _wcs
LINKOPT = $(CLNKDBG)
all: test$(CNAME).exe
test$(CNAME).exe: test.obj
$(LINKER) $(LINKOPT) $**,$@,$(@B).map,$(LIBS),test.def;
!ifdef DEBUG
mapsym $(@B).map
!else
lxlite /cs /mf3 /bdx- /zs $@
!endif
.c.obj:
$(CC) $(COPT) $<