]> git.saurik.com Git - wxWidgets.git/blob - src/regex/makefile.wat
eliminate __WIN32__ only code
[wxWidgets.git] / src / regex / makefile.wat
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 OUTPUTDIR=watcom\
13
14 !include $(WXDIR)\src\makewat.env
15
16 WXLIB = $(WXDIR)\lib
17
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
25
26 all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC
27
28 $(OUTPUTDIR):
29 @if not exist $^@ mkdir $^@
30
31 LBCFILE=$(OUTPUTDIR)regex.lbc
32 $(LIBTARGET) : $(OBJECTS)
33 %create $(LBCFILE)
34 @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
35 wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)
36
37 clean: .SYMBOLIC
38 -erase *.obj
39 -erase $(LIBTARGET)
40 -erase *.pch
41 -erase *.err
42 -erase *.lbc
43
44 cleanall: clean
45