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.emx < prev    next >
Makefile  |  2000-12-05  |  2KB  |  69 lines

  1. ### -*- Fundamental -*-
  2. ###
  3. ### $Id: makefile.emx,v 1.9 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 EMX/GCC
  23.  
  24. # This makefile is configured for use with GNU make, the EMX/GCC
  25. # development system (compiler, assembler, linker, etc.), the GNU m4
  26. # macro preprocessor, and the RC program included with the IBM OS/2
  27. # Toolkit.
  28.  
  29. GCCFLAGS := -Zmt -O
  30. ifeq ($(debug_mode),debug)
  31. GCCFLAGS := $(GCCFLAGS) -g
  32. endif
  33.  
  34. OBJ = o
  35. ASM = s
  36. CC = gcc
  37. CFLAGS = $(GCCFLAGS) -DMIT_SCHEME -D__OS2__
  38. LDFLAGS = $(GCCFLAGS)
  39. M4 = m4
  40. M4FLAGS = -DTYPE_CODE_LENGTH=6
  41. AS = as
  42. ASFLAGS =
  43.  
  44. %.o : %.c
  45.     $(CC) $(CFLAGS) -c $< -o $@
  46.  
  47. %.s : %.m4
  48.     $(M4) $(M4FLAGS) < $< > $@
  49.  
  50. %.o : %.s
  51.     $(AS) $(ASFLAGS) -o $@ $<
  52.  
  53. %.exe :
  54.     $(CC) $(LDFLAGS) -o $(basename $@) $^
  55.     emxbind -b -q $(basename $@)
  56.     del $(basename $@)
  57.  
  58. include os2utl\makefile.cmn
  59.  
  60. scheme.exe : $(OBJECTS) scheme.res
  61.     $(CC) $(LDFLAGS) -o $(basename $@) $(OBJECTS) $(SCHEME_LIB)
  62.     emxbind -b -p -q -r$(basename $@).res $(basename $@)
  63.     del $(basename $@)
  64.  
  65. bchschem.exe : $(BCHOBJECTS) bchschem.res
  66.     $(CC) $(LDFLAGS) -o $(basename $@) $(BCHOBJECTS) $(SCHEME_LIB)
  67.     emxbind -b -p -q -r$(basename $@).res $(basename $@)
  68.     del $(basename $@)
  69.