blob: fa58aa44e1edcb05dc70aa83f377f7052c91312b (
plain)
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
|
# gridcal - compute great-circle distance between two grid locators
.POSIX:
SRC = gridcal.c
OBJ = ${SRC:.c=.o}
all: options gridcal
options:
@echo "-+- build options -+-"
@echo "PREFIX = ${PREFIX}"
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
@echo "-+-+-+-+-+-+-+-+-+-+-"
gridcal: ${OBJ}
$(CC) $(LDFLAGS) -o $@ $(OBJ) -lm
debug: clean
${MAKE} CFLAGS="${DEBUG}" all
clean:
rm -f gridcal ${OBJ}
|