#
# Makefile for SunClock
#
# Source debugging options:
# CFLAGS = -bs
# LNFLAGS = -g 
#
CFLAGS = -fa -su -ss -sf -wc -wp 
# -hi /includes.pre
#
# These options mean:
# -fa use amiga floating point
# -su pick register vars
# -ss eliminate duplicate strings
# -sf use faster for() code at expense of sdb
# -wp warn me if there are any function calls without prototypes
# -wc Don't warn me about (char *) to (unsigned char *) conversions
# -hi use /includes.pre for precompiled includes.
#
OBJECTS = main.o astro.o sun.o Timer.o Options.o Menus.o \
	iconimage.o mainimage.o

SRC =  Options.c Main.c Images.h Astro.c Timer.c Sun.c sunmath.h \
		Menus.c IconImage.c MainImage.c Makefile
DOC = Contents Contents.info SunClock.prowrite SunClock.prowrite.info \
		sunclock.doc sunclock.doc.info
BIN = SunClock SunClock.info

SunClock: $(OBJECTS)
	ln -o SunClock +cd $(OBJECTS) -lma -lc

src.lha: $(SRC)
	lz -0 u src.lha $(SRC)

dist: $(BIN) $(DOC) src.lha
	-makedir distribution
	copy $(BIN) $(DOC) src.lha distribution
