mirror of
https://github.com/eddyem/small_tel.git
synced 2026-03-20 00:31:00 +03:00
add sun
This commit is contained in:
21
Auxiliary_utils/Sun/Makefile
Normal file
21
Auxiliary_utils/Sun/Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
# run `make DEF=...` to add extra defines
|
||||
PROGRAM = noon
|
||||
LDFLAGS := -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,--discard-all
|
||||
LDFLAGS += -lnova
|
||||
SRCS := $(wildcard *.c)
|
||||
DEFINES := $(DEF) -D_GNU_SOURCE -D_XOPEN_SOURCE=1111
|
||||
CFLAGS += -O2 -Wno-trampolines -std=gnu99
|
||||
CC = gcc
|
||||
|
||||
|
||||
LINKS := sunrise sunset
|
||||
|
||||
all : $(LINKS)
|
||||
|
||||
$(LINKS) : $(PROGRAM)
|
||||
@echo "make links"
|
||||
ln -s $< $@ || true
|
||||
|
||||
$(PROGRAM): sun.c
|
||||
@echo -e "\t\tCC $<"
|
||||
$(CC) $(LDFLAGS) $(CFLAGS) $(DEFINES) -o $@ $<
|
||||
Reference in New Issue
Block a user