############################################
# Makefile                                 #
#                                          #
# Makefile for VPREPORT                    #
# Successfully tested with DJGPP and Gnu-C #
# on a Sun-Sparc-Station                   #
#                                          #
# (c) 1995 C. Quix                         #
# Email: Christoph_Quix@p17.ks.fido.de     #
############################################

# There differences between the binary format of integers on Sun and a PC.
# I don't know the binary the format of other UNIX workstations, find it out yourself

# If you want to compile the program on a sun, use this section
#DEFS=-DSUN
#CFLAGS=-Wall -g $(DEFS)
#CFLAGS=-O2 -s $(DEFS)
#CC=gcc $(CFLAGS)
#LIBS=
#RM=rm
#COFF2EXE=echo
#OBJECTS=main.o printpla.o readplan.o

# If you  want to compile the program on a pc, use this section
DEFS=-DPC
#CFLAGS=-Wall -g $(DEFS)
CFLAGS=-O2 -s $(DEFS)
CC=gcc $(CFLAGS)
LIBS=
RM=del
COFF2EXE=coff2exe -s /djgpp/bin/go32.exe
OBJECTS=main.o printpla.o readplan.o


all: vpreport

vpreport: $(OBJECTS)
	$(CC) -o vpreport $(OBJECTS)
	$(COFF2EXE) vpreport
	
main.o: main.c planets.h
	$(CC) -c main.c
	
printpla.o: printpla.c planets.h
	$(CC) -c printpla.c
	
readplan.o: readplan.c planets.h
	$(CC) -c readplan.c
	
clean: 
	$(RM) $(OBJECTS) vpreport

	

