-
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
# sunwait
#
# 08/12/2014 IFC 0.6 No changes since 0.5
# 02/05/2015 IFC 0.7 No changes since 0.5, still
# 10/03/2020 TLJ 0.9 Move headers to fix build on osx
# 2022-09-16 DRR 0.91 Accept changes from @mstilkerich Michael Stilkerich switches to C from C++
#
CFLAGS=-c -Wall -std=c99 -O2 -Wextra -pedantic
CXXFLAGS=-c -Wall
LDFLAGS= -lm
SOURCES=sunwait.c sunriset.c print.c
HEADERS=sunwait.h sunriset.h print.h
OBJECTS=$(SOURCES:.c=.o)
EXECUTABLE=sunwait
all: $(EXECUTABLE)
.c.o:
$(CC) $(CFLAGS) $< -o $@
$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
clean:
rm -f *.o sunwait