#
# This is the MakeFile for MKSoft SnakePit
#

#
# All parts of this program
#	   and this MakeFile are	Copyright (c) 1988 by Michael Sinz
#					All rights reserved.
#

#
#                                 SnakePit
#                                    by
#                               Michael Sinz
#
#                 Copyright (c) 1988 - MKSoft Development
#
#************************************************************************
#
#	Reading legal mush can turn your brain into guacamole!
#
#		So here is some of that legal mush:
#
#Permission is hereby granted to distribute this program's source,
#executable, and documentation for non-commercial purposes, so long as
#the copyright notices are not removed from the sources, executable or
#documentation.  This program may not be distributed for a profit
#without the express written consent of the author Michael Sinz.
#
#This program is not in the public domain.
#
#Fred Fish is expressly granted permission to distribute this program's
#source and executable as part of the "Fred Fish freely redistributable
#Amiga software library."
#
#Permission is expressly granted for this program and it's source to be
#distributed as part of the Amicus Amiga software disks, and the First
#Amiga User Group's Hot Mix disks.
#
#************************************************************************
#
#If you have any comments or suggestions (or bug reports :-(), you can
#contact MKSoft Development via
#
#	BIX:		"msinz"
#or	USENET:		"rutgers!cbmvax!mks"
#or	INTERNET:	"mks@cbmvax.commodore.com"
#
#or via USnail at the address below.
#
#If you enjoy this program, and would like to see more quality software
#for the Amiga, please help "feed the programmer" For only $20 you will
#get a disk with the latest and greatest of MKSoft Development.
#
#		MKSoft Development
#		163 Appledore Drive
#		Downingtown, PA 19335
#
#************************************************************************
#
#

#
# These are the various compile/assemble/link macros...  This is for MANX C68K 3.6
#
CC = CC +x3 +x5 +D
AS = AS -N -C -D
LN = @LN -M +S +Cd

#
# These are the objects...  MUST put Pit_Stuff.o at the front...
#
OBJS=	Pit_Stuff.o Snake_Stuff.o Snake_Play.o Snake_Edit.o Snake_Save.o \
	Snake_Windows.o Snake_Splash.o Snake_Main.o Snake.o \
	Sounds.o Snake_Sound.o

#
# The 'RULES' of the make...
#
SnakePit: $(OBJS)
	$(LN) -O SnakePit $(OBJS) -lcl
	@List SnakePit

Snake.o: Snake.c Snake.h
	$(CC) Snake.c

Snake_Stuff.o: Snake_Stuff.c Snake.h
	$(CC) +B Snake_Stuff.c

Snake_Play.o: Snake_Play.c Snake.h
	$(CC) +B Snake_Play.c

Snake_Edit.o: Snake_Edit.c Snake.h
	$(CC) +B Snake_Edit.c

Snake_Save.o: Snake_Save.c Snake_Save.h Snake.h
	$(CC) +B Snake_Save.c

Snake_Windows.o: Snake_Windows.c Snake_Parts.h SelectKeysImageData.h SelectLevelImageData.h HighScoresImageData.h ContinueImageData.h PauseImageData.h
	$(CC) +B Snake_Windows.c

Snake_Main.o: Snake_Main.c Snake.h
	$(CC) +B Snake_Main.c

Snake_Sound.o: Snake_Sound.c Snake.h
	$(CC) +B Snake_Sound.c

Pit_Stuff.o: Pit_Stuff.asm Screen.asm
	$(AS) -O Pit_Stuff.o Pit_Stuff.asm

Snake_Splash.o: Snake_Splash.asm
	$(AS) -O Snake_Splash.o Snake_Splash.asm

Sounds.o: Sounds.asm
	$(AS) -O Sounds.o Sounds.asm

ReMake: SnakePit
	Touch #?.(h|c|asm)
