]> git.saurik.com Git - wxWidgets.git/blob - src/regex/makefile.wat
Various fixes and warnings
[wxWidgets.git] / src / regex / makefile.wat
1 #!/binb/wmake.exe
2 #
3 # File: makefile.wat
4 # Author: Julian Smart
5 # Created: 1998
6 # Changelist: 2003-02-25 - Juergen Ulbts - update from wxWindows 2.5.x/HEAD branch
7 #
8 # Makefile : Builds REGEX library for Watcom C++, WIN32
9
10 WXDIR = ..\..
11 EXTRACPPFLAGS=-DPOSIX_MISTAKE
12
13 !include $(WXDIR)\src\makewat.env
14
15 WXLIB = $(WXDIR)\lib
16
17 LIBTARGET = $(WXLIB)\regex$(WATCOM_SUFFIX).lib
18
19 OBJECTS = &
20 $(OUTPUTDIR)\regcomp.obj &
21 $(OUTPUTDIR)\regexec.obj &
22 $(OUTPUTDIR)\regerror.obj &
23 $(OUTPUTDIR)\regfree.obj
24
25 all: $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC
26
27 $(OUTPUTDIR):
28 @if not exist $^@ mkdir $^@
29
30 LBCFILE=$(OUTPUTDIR)\regex.lbc
31 $(LIBTARGET) : $(OBJECTS)
32 %create $(LBCFILE)
33 @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
34 wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)
35
36 clean: .SYMBOLIC
37 -erase *.obj
38 -erase $(LIBTARGET)
39 -erase *.pch
40 -erase *.err
41 -erase *.lbc
42
43 cleanall: clean
44