.PHONY : all
.PHONY : clean

# System configuration
SHELL = ade:bin/sh

# System environment
CC = gcc

CODEGEN = -m68000  -noixemul

OPTIMIZATION = -O2

OPTIONS = -s -Wall -Wno-parentheses

CFLAGS = $(CODEGEN) $(OPTIMIZATION) $(OPTIONS)



LIB = 

OBJ = Gadgets.o Parse.o \
	simplerexx.o Activation.o BitWindow.o \
	Iff.o PostMenu.o PostWin.o \
	Print.o ProcessARexx.o Screen.o \
	Utility.o Post.o SubTask.o \
	Options.o postasm.o

ARCHIVE = Boopsi.o 

Post: $(OBJ)
	$(CC) $(CFLAGS) -o $@ $^ $(ARCHIVE) $(LIB)

all: clean Post

clean:
	rm -f Gadgets.o Parse.o simplerexx.o \
	Activation.o BitWindow.o Iff.o PostMenu.o \
	PostWin.o Print.o ProcessARexx.o Screen.o \
	Utility.o Post.o SubTask.o Options.o Post


PostPre.h: Pre.h
	$(CC) -E -dD -o PostPre.h Pre.h

Gadgets.o: Gadgets.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h PostWin.h   \
	Global.h 

	$(CC) $(CFLAGS) $(INCL) -c Gadgets.c

Parse.o: Parse.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h 

	$(CC) $(CFLAGS) $(INCL) -c Parse.c

simplerexx.o: simplerexx.c SimpleRexx.h 

	$(CC) $(CFLAGS) $(INCL) -c simplerexx.c

Activation.o: Activation.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h 

	$(CC) $(CFLAGS) $(INCL) -c Activation.c

BitWindow.o: BitWindow.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h   \
	PostWin.h 

	$(CC) $(CFLAGS) $(INCL) -c BitWindow.c

Iff.o: Iff.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h 

	$(CC) $(CFLAGS) $(INCL) -c Iff.c

PostMenu.o: PostMenu.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h PostWin.h   \
	Global.h 

	$(CC) $(CFLAGS) $(INCL) -c PostMenu.c

PostWin.o: PostWin.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h PostWin.h   \
	global.h 

	$(CC) $(CFLAGS) $(INCL) -c PostWin.c

Print.o: Print.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h 

	$(CC) $(CFLAGS) $(INCL) -c Print.c

ProcessARexx.o: ProcessARexx.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h   \
	PostWin.h 

	$(CC) $(CFLAGS) $(INCL) -c ProcessARexx.c

Screen.o: Screen.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h 

	$(CC) $(CFLAGS) $(INCL) -c Screen.c

Utility.o: Utility.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h 

	$(CC) $(CFLAGS) $(INCL) -c Utility.c

Post.o: Post.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h   \
	Global.c 

	$(CC) $(CFLAGS) $(INCL) -c Post.c

SubTask.o: SubTask.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h Global.h 

	$(CC) $(CFLAGS) $(INCL) -c SubTask.c

Options.o: Options.c PostPre.h postlib.h   \
	post_inline.h SimpleRexx.h PostWin.h   \
	Global.h 

	$(CC) $(CFLAGS) $(INCL) -c Options.c

postasm.o: postasm.s
	as -m68010 -m68882 postasm.s -o postasm.o 

#END OF FILE#
