home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / microcode / os2utl / makefile.vac < prev    next >
Makefile  |  2000-12-05  |  2KB  |  69 lines

  1. ### -*- Fundamental -*-
  2. ###
  3. ### $Id: makefile.vac,v 1.7 2000/12/05 21:23:51 cph Exp $
  4. ###
  5. ### Copyright (c) 1994-2000 Massachusetts Institute of Technology
  6. ###
  7. ### This program is free software; you can redistribute it and/or
  8. ### modify it under the terms of the GNU General Public License as
  9. ### published by the Free Software Foundation; either version 2 of the
  10. ### License, or (at your option) any later version.
  11. ###
  12. ### This program is distributed in the hope that it will be useful,
  13. ### but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. ### General Public License for more details.
  16. ###
  17. ### You should have received a copy of the GNU General Public License
  18. ### along with this program; if not, write to the Free Software
  19. ### Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. ###
  21.  
  22. #### Makefile for Scheme under OS/2 using IBM Visual Age C++
  23.  
  24. # This makefile is configured for use with GNU make, the IBM Visual
  25. # Age C++ compiler (or IBM C Set++/2), GNU m4, the GNU assembler
  26. # included with the EMX/GCC package, and the RC program included with
  27. # the IBM OS/2 Toolkit.
  28.  
  29. ICCFLAGS := /Gm+ /Q+ /W2 /Wall+
  30. ifeq ($(debug_mode),debug)
  31. ICCFLAGS := $(ICCFLAGS) /Ti+
  32. else
  33. ifeq ($(debug_mode),optimize)
  34. ICCFLAGS := $(ICCFLAGS) /O+
  35. endif
  36. endif
  37.  
  38. OBJ = obj
  39. ASM = asm
  40. CC = icc
  41. CFLAGS = $(ICCFLAGS) /DMIT_SCHEME
  42. LDFLAGS = $(ICCFLAGS) /B"/EXEPACK"
  43. M4 = m4
  44. M4FLAGS = -DOS2
  45. AS = as
  46. ASFLAGS = -Zomf
  47.  
  48. %.obj : %.c
  49.     $(CC) $(CFLAGS) /C $<
  50.  
  51. %.asm : %.m4
  52.     $(M4) $(M4FLAGS) < $< > $@
  53.  
  54. %.obj : %.asm
  55.     $(AS) $(ASFLAGS) -o $@ $<
  56.  
  57. %.exe :
  58.     $(CC) $(LDFLAGS) /Fe$@ $^
  59.  
  60. include os2utl\makefile.cmn
  61.  
  62. scheme.exe : $(OBJECTS) scheme.res
  63.     $(CC) $(LDFLAGS) /B"/PMTYPE:PM" /Fe$@ $(OBJECTS) $(SCHEME_LIB)
  64.     rc scheme.res $@
  65.  
  66. bchschem.exe : $(BCHOBJECTS) bchschem.res
  67.     $(CC) $(LDFLAGS) /B"/PMTYPE:PM" /Fe$@ $(BCHOBJECTS) $(SCHEME_LIB)
  68.     rc bchschem.res $@
  69.