home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 November / PCONLINE_11_99.ISO / filesbbs / OS2 / CDR18A24.ZIP / source / i386-os2-gcc.rul < prev    next >
Encoding:
Text File  |  1999-08-21  |  2.3 KB  |  86 lines

  1. #ident "%W% %E% %Q%"
  2. ###########################################################################
  3. # Written 1999 by C. Wohlgemuth 
  4. ###########################################################################
  5. #
  6. # Platform dependent MACROS for OS/2 using gcc (EMX)
  7. #
  8. ###########################################################################
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 2, or (at your option)
  12. # any later version.
  13. #
  14. # This program is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with this program; see the file COPYING.  If not, write to
  21. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  22. ###########################################################################
  23. include $(SRCROOT)/$(RULESDIR)/rules.prg
  24. ###########################################################################
  25.  
  26. CPPFLAGS=    $(CPPOPTS) $(CPPOPTX)
  27. CFLAGS=        $(COPTS) $(CWARNOPTS) $(COPTOPT) $(COPTX)
  28.  
  29. OSDEFS=        -D__OS2 -DNO_FLOATINGPOINT
  30.  
  31. CPPOPTS=     -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
  32.  
  33. COPTS=        -Zexe 
  34. CWOPTS=        -Wall -Wtraditional \
  35.         -Wshadow -Wmissing-prototypes -Wstrict-prototypes
  36. COPTOPT=    -O
  37.  
  38. KDEFINES=
  39.  
  40. COPTDYN=
  41. COPTGPROF=
  42. LIB_PREFIX=
  43. LIB_SUFFIX=    .a
  44. SHL_SUFFIX=
  45.  
  46. #LIB_SOCKET=    -lsocket -lnsl -ldl
  47. LIB_SOCKET=        
  48.  
  49. #LIB_MATH=    -lm
  50. LIB_MATH=
  51. LIB_KVM=    
  52.  
  53. LIBS_PATH=    -L$(OLIBSDIR)
  54.  
  55. LDFLAGS=    $(LDOPTS) $(LDOPTX) 
  56. LDLIBS=        $(LIBS) $(LIBX) -lshm
  57.  
  58. #LDOPTS=        $(LIBS_PATH) $(LDPATH) $(RUNPATH)
  59. LDOPTS=        $(LIBS_PATH) $(LDPATH)
  60.  
  61. LDOPTDYN=
  62.  
  63. LNDYNLIB=    @$(SYMLINK) $(TARGET) $(PTARGET_BASE).so
  64.  
  65. FLOAT_OPTIONS=    
  66.  
  67.  
  68. CC=        @echo "    ==> COMPILING \"$@\""; gcc 
  69. LDCC=        @echo "    ==> LINKING \"$@\""; gcc -Zexe -s -Zcrtdll
  70. DYNLD=        @echo "    ==> LINKING dynamic library \"$@\""; gcc
  71. RANLIB=
  72. #        @echo "    ==> RANDOMIZING ARCHIVE \"$@\""; true
  73.  
  74.  
  75. ARFLAGS=    cr
  76.  
  77. LORDER=        echo
  78. TSORT=        cat
  79.  
  80. RMDEP=        :
  81.  
  82. MKDEP=        @echo "    ==> MAKE DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
  83.  
  84. MKDEP_OUT=
  85.  
  86.