]> git.saurik.com Git - wxWidgets.git/blobdiff - src/regex/makefile.wat
implemented Remove() and Replace() for GTK2 (patch 705051 from Nerijus)
[wxWidgets.git] / src / regex / makefile.wat
index 80c81310f61a7cb0756fd39ef59a7410b039093a..3e9eb10cb0004b247a097982201ca58b1775c21b 100644 (file)
@@ -9,26 +9,32 @@
 WXDIR = ..\..
 EXTRACPPFLAGS=-DPOSIX_MISTAKE
 
+OUTPUTDIR=watcom\
+
 !include $(WXDIR)\src\makewat.env
 
 WXLIB = $(WXDIR)\lib
 
-LIBTARGET   = $(WXLIB)\regex.lib
+LIBTARGET = $(WXLIB)\regex$(WATCOM_SUFFIX).lib
+
+OBJECTS = &
+               $(OUTPUTDIR)regcomp.obj &
+               $(OUTPUTDIR)regexec.obj &
+               $(OUTPUTDIR)regerror.obj &
+               $(OUTPUTDIR)regfree.obj
 
-OBJECTS= &
-               regcomp.o &
-               regexec.o &
-               regerror.o &
-               regfree.o
+all:        $(OUTPUTDIR) $(LIBTARGET) .SYMBOLIC
 
-all:        $(OBJECTS) $(LIBTARGET)
+$(OUTPUTDIR):
+       @if not exist $^@ mkdir $^@
 
+LBCFILE=$(OUTPUTDIR)regex.lbc
 $(LIBTARGET) : $(OBJECTS)
-    %create tmp.lbc
-    @for %i in ( $(OBJECTS) ) do @%append tmp.lbc +%i
-    wlib /b /c /n /p=512 $^@ @tmp.lbc
+    %create $(LBCFILE)
+    @for %i in ( $(OBJECTS) ) do @%append $(LBCFILE) +%i
+    wlib /q /b /c /n /p=512 $^@ @$(LBCFILE)
 
-clean:
+clean:   .SYMBOLIC
     -erase *.obj
     -erase $(LIBTARGET)
     -erase *.pch