home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnurx.zip / rx / Makefile.os2 < prev    next >
Makefile  |  1996-02-08  |  3KB  |  83 lines

  1. # Makefile for librx
  2. # Copyright (C) 1994 Free Software Foundation, Inc.
  3. # This file is part of GNU Rx
  4. # GNU Rx is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. # GNU Rx is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with GNU Rx; see the file COPYING.LIB.  If not, write to
  14. # the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15.  
  16. release:
  17.     $(MAKE) -f Makefile.os2 gnurx.dll rx.lib \
  18.     CC="gcc -Zomf -O" O=".obj" DFLAGS="-Zcrtdll -Zdll"
  19. debug:
  20.     $(MAKE) -f Makefile.os2 rx.a \
  21.     CC="gcc -g" O=".o" DFLAGS="" AR="ar" RANLIB="ar s"
  22.  
  23. OBJS =    hashrexp$O rx$O rxanal$O rxbasic$O rxbitset$O rxcset$O \
  24.     rxdbug$O rxgnucomp$O rxhash$O rxnfa$O rxnode$O rxposix$O rxsimp$O \
  25.     rxspencer$O rxstr$O rxsuper$O rxunfa$O
  26.  
  27. .SUFFIXES: .c $O
  28.  
  29. .c$O:
  30.     $(CC) -c $(CFLAGS) -I. $<
  31.  
  32. rx.a: $(OBJS)
  33.     rm -f $@
  34.     $(AR) cr $@ $(OBJS)
  35.     $(RANLIB) $@
  36.  
  37. rx.lib: gnurx.def
  38.     emximp -o $@ gnurx.def
  39.  
  40. gnurx.dll: $(OBJS) gnurx.def
  41.     $(CC) -o $@ $(OBJS) gnurx.def $(DFLAGS)
  42.  
  43. hashrexp$O : hashrexp.c rxall.h rxnode.h rxbitset.h rxcset.h \
  44.   rxhash.h 
  45. runtests$O : runtests.c rxall.h rxposix.h rxspencer.h \
  46.   rxproto.h rxnode.h rxbitset.h rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h \
  47.   rxnfa.h rxcontext.h testcases.h 
  48. rx$O : rx.c rxall.h rxhash.h rxbitset.h rxnfa.h _rx.h \
  49.   rxcset.h rxnode.h 
  50. rxanal$O : rxanal.c rxall.h rxanal.h rxcset.h rxbitset.h \
  51.   rxnode.h rxsuper.h rxnfa.h _rx.h rxhash.h 
  52. rxbasic$O : rxbasic.c rxall.h rxbasic.h rxcontext.h rxnode.h \
  53.   rxbitset.h rxcset.h rxspencer.h rxproto.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h \
  54.   rxnfa.h rxstr.h 
  55. rxbitset$O : rxbitset.c rxall.h rxbitset.h 
  56. rxcset$O : rxcset.c rxall.h rxcset.h rxbitset.h 
  57. rxdbug$O : rxdbug.c rxall.h rxgnucomp.h rxcset.h rxbitset.h \
  58.   rxnode.h rxnfa.h _rx.h rxhash.h 
  59. rxgnucomp$O : rxgnucomp.c rxall.h rxgnucomp.h rxcset.h \
  60.   rxbitset.h rxnode.h 
  61. rxhash$O : rxhash.c rxall.h rxhash.h rxbitset.h 
  62. rxnfa$O : rxnfa.c rxall.h rxnfa.h _rx.h rxhash.h rxbitset.h \
  63.   rxcset.h rxnode.h 
  64. rxnode$O : rxnode.c rxall.h rxnode.h rxbitset.h rxcset.h 
  65. rxposix$O : rxposix.c rxall.h rxposix.h rxspencer.h rxproto.h \
  66.   rxnode.h rxbitset.h rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h \
  67.   rxcontext.h rxgnucomp.h rxbasic.h rxsimp.h 
  68. rxsimp$O : rxsimp.c rxall.h rxsimp.h rxcset.h rxbitset.h \
  69.   rxnode.h 
  70. rxspencer$O : rxspencer.c rxall.h rxspencer.h rxproto.h \
  71.   rxnode.h rxbitset.h rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h 
  72. rxstr$O : rxstr.c rxall.h rxstr.h rxspencer.h rxproto.h \
  73.   rxnode.h rxbitset.h rxcset.h rxunfa.h _rx.h rxhash.h rxanal.h rxsuper.h rxnfa.h \
  74.   rxcontext.h 
  75. rxsuper$O : rxsuper.c rxall.h rxsuper.h rxnfa.h _rx.h \
  76.   rxhash.h rxbitset.h rxcset.h rxnode.h 
  77. rxunfa$O : rxunfa.c rxall.h rx.h rxhash.h rxbitset.h rxunfa.h \
  78.   _rx.h rxcset.h rxnfa.h rxnode.h 
  79.