# Makefile to compile GNU Pascal for EMX with nmake
# written by Peter Gerwinski <peter.gerwinski@uni-essen.de>
# on 31. July 1996

# GPC directory
GPCDIR = \emx\gnu\gpc-272

# RTS directory
RTSDIR = \emx\gnu\gpc-272\rts

# GCC directory
GCCDIR = \emx\gnu\gcc-272

all: makefiles otherfiles gcc gpc rts

# Please specify your file system: FS=FAT or FS=HPFS

makefiles:
  copy Make$(FS). $(GPCDIR)\Makefile.
  copy Make$(FS).RTS $(RTSDIR)\Makefile.

otherfiles:
  copy version.c $(GPCDIR)
  copy rts-vers.c $(RTSDIR)
  copy gcc_bcmp.c $(RTSDIR)
  copy *.cmd $(GCCDIR)

gcc:
  cd $(GCCDIR)
  dostage1
  makeexe

gpc:
  cd $(GPCDIR)
  nmake install

rts:
  cd $(RTSDIR)
  nmake install
