]>
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 | ||
12 | !include $(WXDIR)\src\makewat.env | |
13 | ||
14 | WXLIB = $(WXDIR)\lib | |
15 | ||
16 | LIBTARGET = $(WXLIB)\regex.lib | |
17 | ||
18 | OBJECTS= & | |
19 | regcomp.o & | |
20 | regexec.o & | |
21 | regerror.o & | |
22 | regfree.o | |
23 | ||
24 | all: $(OBJECTS) $(LIBTARGET) | |
25 | ||
26 | $(LIBTARGET) : $(OBJECTS) | |
27 | %create tmp.lbc | |
28 | @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i | |
29 | wlib /b /c /n /p=512 $^@ @tmp.lbc | |
30 | ||
31 | clean: | |
32 | -erase *.obj | |
33 | -erase $(LIBTARGET) | |
34 | -erase *.pch | |
35 | -erase *.err | |
36 | -erase *.lbc | |
37 | ||
38 | cleanall: clean | |
39 |