# Astrolog (Version 4.40) File: Makefile (Amiga version)
#
# IMPORTANT NOTICE: The graphics database and chart display routines
# used in this program are Copyright (C) 1991-1995 by Walter D. Pullen
# (astara@u.washington.edu). Permission is granted to freely use and
# distribute these routines provided one doesn't sell, restrict, or
# profit from them in any way. Modification is allowed provided these
# notices remain with any altered or edited versions of the program.
#
# First created 11/21/1991.
#
# This Makefile is included only for convenience. One could easily compile
# Astrolog on a Unix system by hand with the command:
# % cc -c -O *.c; cc -o astrolog *.o -lm -lX11
# Generally, all that needs to be done to compile once astrolog.h has been
# edited, is compile each source file, and link them together with the math
# library, and if applicable, the main X library.

# $VER: $Id: Makefile,v 1.3 1995/06/26 16:14:16 tf Exp $

NAME = astrolog

OBJ = astrolog.o data.o data2.o general.o io.o \
 calc.o matrix.o placalc.o placalc2.o \
 charts0.o charts1.o charts2.o charts3.o intrpret.o \
 xdata.o xgeneral.o xdevice.o xcharts0.o xcharts1.o xcharts2.o xscreen.o \
 amiga.o getkey.o

#CC= gcc
#LIBS = -lm -lamiga

CC= gcc -noixemul
LIBS = -lm

#MACHINE = -m68000
MACHINE = -m68030 -m68881

#CFLAGS  = -DAMIGA -O3 -Wall $(MACHINE) -I dinclude:amiga31
CFLAGS  = -DAMIGA -Wall $(MACHINE) -I dinclude:amiga31

RM = rm -f


all: $(NAME)

.c.o:
	$(CC) $(CFLAGS) -c -o $@ $<

$(NAME): $(OBJ) ellipse.o
	$(CC) $(CFLAGS) -o $(NAME) $(OBJ) ellipse.o $(LIBS)
#

ellipse.o: ellipse.s
	as -o ellipse.o ellipse.s

clean:
	$(RM) $(OBJ) $(NAME)
