# GCC-Makefile for Ruby		(32 bit)
# Copyright (c) 1992 Markus M. Nick, Mainz 41
#
# this is the makefile to compile Ruby with gcc (32 bit)
# it requires UNIXMODE = 'L' or "more"

# please adapt RUBY_ROOT   --   bitte RUBY_ROOT anpassen
# in the file PATHS

include ..\..\paths

# options for the c compiler
###COPTS = -I$(RUBY_ROOT)\gcc -Wall
COPTS = -I$(RUBY_ROOT)\gcc  -Wall -O -fomit-frame-pointer -fcombine-regs -fstrength-reduce

# options for the linker  (strip off symbols)
LOPTS = -s

# the names of the compiler, the archiver etc
CC = gcc
AR = gcc-ar
AS = gcc
CLINK = gcc
RM = rm

# compiler, linker, assembler and archiver options
CFLAGS = $(COPTS) -o #<- 1 space necessary!!
LFLAGS = $(LOPTS) -o #<- 1 space necessary!!
ASFLAGS = 
ARFLAGS = rv #<- 1 space necessary!!
C_ONLY = -c

# special compiler for ruby.c and ruby_pop.c
RU_CC = $(CC)
RU_CFLAGS = $(CFLAGS)
RU_C_ONLY = $(C_ONLY)

# the name of the library
RUBYLIBNAME = ruby.olb

# the name of the example program
TESTPRG = xample32

# the libraries
LIBS = -lgem -lgnu

# include the stuff for both 16 and 32 bit
include ..\..\mincl

# -eof-
