-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
36 lines (22 loc) · 825 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.SUFFIXES: .o .c
all: solunar
VERSION=0.1.3d
MYCFLAGS=-Wall -DVERSION=\"$(VERSION)\" $(CFLAGS)
MYLDFLAGS=$(LDFLAGS)
CC=gcc
OBJS=main.o city.o pointerlist.o error.o latlong.o datetime.o suntimes.o roundutil.o trigutil.o timeutil.o moontimes.o mathutil.o holidays.o astrodays.o nameddays.o solunar.o
solunar: $(OBJS)
$(CC) $(MYLDFLAGS) -s -o solunar $(OBJS) -lm
.c.o:
$(CC) $(MYCFLAGS) -o $*.o -c $*.c
clean:
rm -f *.o solunar
# Uncomment these lines if you want to parse zone.tab into a more
# up-to-date cityinfo.h. And, if your system have a zone.tab. And if you
# have perl. The included data should be OK for most purposes.
#cityinfo.h: /usr/share/zoneinfo/zone.tab parse_zoneinfo.pl
# ./parse_zoneinfo.pl
install:
mkdir -p $(DESTDIR)/usr/bin
cp -p solunar $(DESTDIR)/usr/bin/
include dependencies.mak