home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / src / regex / makefile.wat < prev    next >
Makefile  |  2001-12-09  |  697b  |  40 lines

  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.obj &
  20.         regexec.obj &
  21.         regerror.obj &
  22.         regfree.obj
  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:   .SYMBOLIC
  32.     -erase *.obj
  33.     -erase $(LIBTARGET)
  34.     -erase *.pch
  35.     -erase *.err
  36.     -erase *.lbc
  37.  
  38. cleanall:   clean
  39.  
  40.