# Megamax LaserC (+ DRI / Alcyon) - Makefile for Ruby
# Copyright (c) 1992 Markus M. Nick, Mainz 41
#
# this is the makefile to compile Ruby with PureC
# 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 =

# the names of the compiler, the archiver etc
CC = cc
AR = ar
AS = cc
CLINK = ld
RM = i:\bin\rm.ttp

# compiler, linker and archiver options
CFLAGS = $(COPTS) -I$(LaserC_INCLUDES) -O #<- 1 space
LFLAGS = -o #<- 1 space
ARFLAGS = rv  #<- 1 space
ASFLAGS =
C_ONLY = -C

# special compiler for ruby.c and ruby_pop.c
# (PureC with DRI-Output)
RU_CC = pcc
RU_CFLAGS = -P -S -H -B -X -R -DPuDRI -I..\h4pcc -O=#<- no space
RU_C_ONLY =

# special compiler flags for ruby.c
RUBY_C_FLAGS = -U__STDC__

# compiler specific objects 
OBJ_SPECIAL = rsr_regs.o

# the name of the library
RUBYLIBNAME = ruby.a

# the name of the example program
TESTPRG = xample

# the startup object (usually crt0.o or so)
CL_INIT = $(LaserC_LIBS)\init.o

# the libraries
LIBS = -Lc

# include the stuff for all compilers
include ..\..\mincl

All : rsr_regs.o ltmf_lib.o $(OBJ_RUBY)
# execute LaserC makefile
	make -F makefile.las all

rsr_regs.o : $(RUBY_ROOT)\megamax\rsr_regs.s
	pasm -B -O=$@ $<

# -eof-

