#
# Makefile for praytime
#
# Waleed A. Muhanna
# Ohio State University
# wmuhanna@magnus.acs.ohio-state.edu
# November, 1992
#


# Edit the following 5 lines to give the data for your location

LOCNAME= Avanos, Trkiye # Location name (max 40 chars)
LATITUDE= 38.710         # Latitude in degrees (negative if South) 
LONGITUDE= 34.850     # Longitude in degrees (negative if West)
TIMEZONEDIF= +2    # Time Zone in decimal hours (negative if West of Greenwich)
DAYLIGHT= 1            # Adjust for daylight saving time (1 for yes; 0 for no)

#LOCNAME= Columbus, OH  # Location name (max 40 chars)
#LATITUDE= 39.961       # Latitude in degrees (negative if South) 
#LONGITUDE= -82.999     # Longitude in degrees (negative if West)
#TIMEZONEDIF= -5    # Time Zone in decimal hours (negative if West of Greenwich)
#DAYLIGHT= 1            # Adjust for daylight saving time (1 for yes; 0 for no)

# CITY 			Latitude	Longitude
# -------------------------------------------------
# Anchorage, AK		61.218		-149.892
# Ann Arbor, MI		42.283		-83.746
# Atlanta, GA		33.749		-84.388
# Boston, MA		42.358		-71.060
# Chicago, IL		41.850		-87.650
# Cincinnati, OH	39.104		-84.519
# Cleveland, OH		41.499		-81.696
# Columbus, OH		39.961		-82.999
# Dallas, TX		32.783		-96.800
# Denver, CO		39.739		-104.984
# Detroit, MI		42.331		-83.046
# Honolulu, HI		21.307		-157.858
# Houston, TX		29.763		-95.363
# Indianapolis, IN	39.768		-86.158
# Kansas City, MO	39.114		-94.627
# Los Angeles, CA	34.052		-118.243
# Madison, WI		43.073		-89.401
# Miami, FL		25.774		-80.194
# Milwaukee, WI		43.039		-87.906
# Minneapolis, MN	44.980		-93.264
# New Orleans, LA	29.954		-90.075
# New York, NY		40.714		-74.006
# Oklahoma City, OK	35.468		-97.516
# Orlando, FL		28.538		-81.379
# Pittsburgh, PA	40.441		-79.996
# Portland, OR		45.524		-122.675
# San Francisco, CA	37.775		-122.418
# Seattle, WA		47.606		-122.331
# Tampa, FL		27.947		-82.459
# Toronto, Ontario	43.653		-79.383
# Tucson, AZ		32.222		-110.926
# Vancouver, BC		49.316		-123.079
# Washington, DC	38.895		-77.037

# Makkah, S. Arabia	21.423		39.823
# Maddinah, S. Arabia	24.6		39.8
# Al-Quds, Palestine	31.77		35.20

# Algiers, Algeria	36.8		3.0
# Baghdad, `Iraq	34.0		45.0
# Cairo, Egypt		30.1		31.3
# Damascus, Syria	34.0		36.0
# Rabat, Morocco	34.0		-7.0
# Riyadh, S. Arabia	24.0		47.0

# Agra, India		27.2		77.9
# Dacca, Bangladesh	23.8		90.3
# Istanbul, Turkey	41.0		28.9
# Jakarta, Indonesia	-6.3		106.9
# Peshawar, Pakistan	33.6		71.4
# Tehran, Iran		35.7		51.4

# Dar el-Salaam, Tanz.	-6.8		39.2
# Dakar, Senegal	14.7		-17.5
# Lagos, Nigeria	6.5		3.4
# Capetown, S. Africa	-33.8		18.6

# Tokyo, Japan		35.7		139.7	
# Sydney, Australia	-33.9		151.2

# Paris, France		48.4		2.9	
# London, England	50.7		-0.1	

# Buenos Aires, Argant. -34.7		-58.4
# Lima, Peru		-12.4		-77.0
# Rio DeJeneiro, Brazil -22.9		-43.2

DESTDIR=/usr/local
#CC= gcc
CFLAGS=	-O -DLOCNAME=\""${LOCNAME}"\" -DLATITUDE=${LATITUDE} \
        -DLONGITUDE=${LONGITUDE} -DTIMEZONEDIF=${TIMEZONEDIF} \
	-DDAYLIGHT=${DAYLIGHT}

praytime: praytime.c 
	$(CC) $(CFLAGS) -o praytime praytime.c -lm

install: praytime
	install -c -s praytime $(DESTDIR)/bin
	install -c -m 444 praytime.1 $(DESTDIR)/man/man1

clean:
	rm -f praytime core praytime.o
