]>
Commit | Line | Data |
---|---|---|
c88597ef VZ |
1 | #!/binb/wmake.exe |
2 | # | |
3 | # File: makefile.wat | |
4 | # Author: Julian Smart | |
5 | # Created: 1998 | |
6 | # | |
7 | # Makefile : Builds REGEX library for Watcom C++, WIN32 | |
8 | ||
9 | WXDIR = ..\.. | |
10 | EXTRACPPFLAGS=-DPOSIX_MISTAKE | |
11 | ||
a0499e2f VZ |
12 | OUTPUTDIR=watcom\ |
13 | ||
c88597ef VZ |
14 | !include $(WXDIR)\src\makewat.env |
15 | ||
16 | WXLIB = $(WXDIR)\lib | |
17 | ||
a0499e2f VZ |
18 | LIBTARGET = $(WXLIB)\regex$(WATCOM_SUFFIX).lib |
19 | ||
20 | OBJECTS = & | |
21 | $(OUTPUTDIR)regcomp.obj & | |
22 | $(OUTPUTDIR)regexec.obj & | |
23 | $(OUTPUTDIR)regerror.obj & | |
24 | $(OUTPUTDIR)regfree.obj | |
c88597ef | 25 | |
a0499e2f | 26 | all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC |
c88597ef | 27 | |
a0499e2f VZ |
28 | $(OUTPUTDIR): |
29 | @if not exist $^@ mkdir $^@ | |
c88597ef | 30 | |
a0499e2f | 31 | LBCFILE=$(OUTPUTDIR)regex.lbc |
c88597ef | 32 | $(LIBTARGET) : $(OBJECTS) |
a0499e2f VZ |
33 | %create $(LBCFILE) |
34 | @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i | |
35 | wlib /q /b /c /n /p=512 $^@ @$(LBCFILE) | |
c88597ef | 36 | |
0cbc52f3 | 37 | clean: .SYMBOLIC |
c88597ef VZ |
38 | -erase *.obj |
39 | -erase $(LIBTARGET) | |
40 | -erase *.pch | |
41 | -erase *.err | |
42 | -erase *.lbc | |
43 | ||
44 | cleanall: clean | |
45 |