#
# fairland make. :*)
# makefile, and fixes by Michael Feuell
#
# original program by Ken Stevens
#

CC= cc
CFLAGS= -w -O2
EMPDIR= ..

all:
	@echo "fairland 1.6"
	@echo "by Ken Stevens"
	@echo ""
	@echo "fairland 1.6.2 : fixes for linux and OSF1, and makefile, and tar.Z format"
	@echo "by Michael Feuell"
	@echo ""
	@echo "fair/ should be a subdirectory under E/ for this to work fine."
	@echo ""
	@echo "<compiling>"
	$(CC) $(CFLAGS) -c fairland.c -I$(EMPDIR)/h
	@echo "<linking>"
	$(CC) $(CFLAGS) -o fl fairland.o -L$(EMPDIR)/lib/ -lglobal -lgen
	@echo "<done>"
	@echo "use : fl nc sc [ni] [is] [sp] [pm] [di] [id]"
	@echo ""
	@echo "nc = number of continents"
	@echo "sc = continent size"
	@echo "ni = number of islands (optional, default = nc)"
	@echo "is = average size of islands (optional, default = sc/2)"
	@echo "sp = spike percentage: 0 = round, 100 = snake (default = 10)"
	@echo "pm = the percentage of land that is mountain (default = 0)"
	@echo "di = the minimum distance between continents (default = 2)"
	@echo "id = minimum distance from islands to continents (default = 1)"

install:
	cp fl $(EMPDIR)/bin

clean:
	rm *.o fl