#
# A very simple makefile to compile rexx
# under unix, using either GNU C++ or C
#

CC = cc
#CC = gcc
#DEBUG = -g
CCFLAGS = -Aa -O $(DEBUG)

.c.o:
	$(CC) -c $(DEBUG) $(CCFLAGS) $<


OBJS = \
	rexx.o \
	builtin.o \
	convert.o \
	error.o \
	expr.o \
	instruct.o \
	i_cmd.o \
	i_do.o \
	lstring.o \
	memory.o \
	nextsymb.o \
	rexxfunc.o \
	rxconv.o \
	rxfiles.o \
	rxmath.o \
	rxstr.o \
	rxword.o \
	template.o \
	utils.o \
	variable.o

rx: $(OBJS)
	$(CC) -o$@ $(CCFLAGS) $(OBJS) -lm -lc

clean:
	rm -f *.o rx
