# ---------------------------
# SAS-C Makefile for EasyRexx
# ---------------------------

OBJS=	Designer.o TASK_Main.o GUI_Environment.o Asl.o TASK_About.o \
			Designer_locale.o myinclude:myDebug.o list.o MainMenu.o TASK_Assign.o \
			HandleFlags.o lib:reqtools.lib ProjectIO.o TASK_Code.o\
			GenerateCSource.o Designer_AREXX.o myinclude:Exists.o\
			myinclude:MyIFFfunctions.o myinclude:ISortList.o \
			GenerateESource.o GenerateModula2Source.o GenerateOberonSource.o

LINKFLAGS	= SMALLCODE SMALLDATA NOCHECKABORT NOSTACKEXT NOSTACKCHECK
all: designer copy

copy:
	copy designer /

clear:
	@delete *.o
	@smake links

links:
	@echo "*e[32mMaking the linkable catalogs*e[0m"
	@catcomp xloc:Designer.cd CFILE Designer_locale.h	OBJFILE Designer_locale.o

Designer: $(OBJS)
	@revco "ARexx Interface Designer" COMPILATION
  sc $(LINKFLAGS) link to Designer with <<
$(OBJS)
<

Designer.o:								System.h TASK_Main.c Designer.c
GUI_Environment.o:				System.h GUI_Environment.h GUI_Environment.c myinclude:mylist.c
TASK_Main.o:							System.h TASK_Main.h TASK_Main.c
TASK_About.o:							System.h TASK_About.h TASK_About.c
TASK_Assign.o:						System.h TASK_Assign.h TASK_Assign.c
TASK_Code.o:							System.h TASK_Code.h TASK_Code.c
Asl.o:										System.h Asl.h Asl.c
list.o:										System.h list.h list.c
MainMenu.o:								System.h TASK_Main.c MainMenu.c
HandleFlags.o:						System.h TASK_Main.c HandleFlags.c
ProjectIO.o:							System.h ProjectIO.h ProjectIO.c
GenerateCSource.o:				System.h GenerateCSource.h GenerateCSource.c
GenerateESource.o:				System.h GenerateESource.h GenerateESource.c
GenerateModula2Source.o:	System.h GenerateModula2Source.h GenerateModula2Source.c
GenerateOberonSource.o:		System.h GenerateOberonSource.h GenerateOberonSource.c
Designer_AREXX.o:					System.h Designer_AREXX.h Designer_AREXX.c
Exists.o:									myinclude:Exists.h myinclude:Exists.c
MyIFFfunctions.o:					myinclude:MyIFFfunctions.h myinclude:MyIFFfunctions.c
ISortList.o:							myinclude:ISortList.h myinclude:ISortList.c
