File: cflags.patch

package info (click to toggle)
astronomical-almanac 5.6-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,040 kB
  • sloc: ansic: 30,672; makefile: 170; xml: 109; sh: 1
file content (35 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (2)
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
Description: CFLAGS can not be set from outside; LDFLAGFS are not used at all
Index: astronomical-almanac/makefile
===================================================================
--- astronomical-almanac.orig/makefile	2024-12-19 09:41:41.518609053 +0100
+++ astronomical-almanac/makefile	2024-12-20 00:55:01.975895615 +0100
@@ -1,5 +1,5 @@
 CC= gcc
-CFLAGS=  -O2 -Wall
+CFLAGS+=  -O2 -Wall
 #CFLAGS=  -g -Wall
 OBJS = altaz.o angles.o annuab.o constel.o deflec.o deltat.o diurab.o \
 diurpx.o dms.o epsiln.o fk4fk5.o kepler.o kfiles.o lightt.o lonlat.o \
@@ -11,19 +11,19 @@
 INCS = kep.h plantbl.h
 
 aa: aa.o $(OBJS) $(INCS)
-	$(CC) -o aa aa.o $(OBJS) -lm
+	$(CC) -o aa aa.o $(OBJS) -lm $(LDFLAGS)
 #	coff2exe aa
 
 aa.o: aa.c $(INCS)
 
 conjunct: conjunct.o $(OBJS) $(INCS)
-	$(CC) -o conjunct conjunct.o $(OBJS) -lm
+	$(CC) -o conjunct conjunct.o $(OBJS) -lm $(LDFLAGS)
 #	coff2exe conjunct
 
 conjunct.o: conjunct.c $(INCS)
 
 moonrise: moonrise.o $(OBJS) $(INCS)
-	$(CC) -o moonrise moonrise.o $(OBJS) -lm
+	$(CC) -o moonrise moonrise.o $(OBJS) -lm $(LDFLAGS)
 
 moonrise.o: moonrise.c $(INCS)