sunwait
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 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