summaryrefslogtreecommitdiff
path: root/devel/libtai/files/patch-aa
blob: 01e4ba96bd13a43374c6ed1f9a5d4937e7336e02 (plain) (blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
--- Makefile.orig	Tue Oct 13 14:52:20 1998
+++ Makefile	Fri Jun 16 20:30:27 2000
@@ -5,10 +5,11 @@
 default: it
 
 auto-ccld.sh: \
-conf-cc conf-ld warn-auto.sh
+conf-cc conf-ld conf-ccso warn-auto.sh
 	( cat warn-auto.sh; \
 	echo CC=\'`head -1 conf-cc`\'; \
-	echo LD=\'`head -1 conf-ld`\' \
+	echo LD=\'`head -1 conf-ld`\'; \
+	echo CCSO=\'`head -1 conf-ccso`\' \
 	) > auto-ccld.sh
 
 caldate.0: \
@@ -69,7 +70,7 @@
 
 check: \
 load check.o libtai.a
-	./load check libtai.a 
+	./load check -L. -ltai
 
 check.o: \
 compile check.c tai.h uint64.h leapsecs.h caltime.h caldate.h
@@ -83,7 +84,7 @@
 
 easter: \
 load easter.o libtai.a
-	./load easter libtai.a 
+	./load easter -L. -ltai 
 
 easter.o: \
 compile easter.c caldate.h
@@ -95,11 +96,11 @@
 	chmod 755 find-systype
 
 it: \
-man libtai.a leapsecs check easter yearcal nowutc
+man libtai.so libtai.a leapsecs check easter yearcal nowutc
 
 leapsecs: \
 load leapsecs.o libtai.a
-	./load leapsecs libtai.a 
+	./load leapsecs -L. -ltai 
 
 leapsecs.0: \
 leapsecs.3
@@ -125,22 +126,22 @@
 compile leapsecs_sub.c leapsecs.h tai.h uint64.h
 	./compile leapsecs_sub.c
 
-libtai.a: \
-makelib tai_add.o tai_now.o tai_pack.o tai_sub.o tai_unpack.o \
+OBJS=tai_add.o tai_now.o tai_pack.o tai_sub.o tai_unpack.o \
 taia_add.o taia_approx.o taia_fmtfrac.o taia_frac.o taia_half.o \
 taia_less.o taia_now.o taia_pack.o taia_sub.o taia_tai.o \
 taia_unpack.o caldate_fmt.o caldate_scan.o caldate_fmjd.o \
 caldate_mjd.o caldate_norm.o caldate_ster.o leapsecs_read.o \
 leapsecs_init.o leapsecs_add.o leapsecs_sub.o caltime_fmt.o \
 caltime_scan.o caltime_tai.o caltime_utc.o
-	./makelib libtai.a tai_add.o tai_now.o tai_pack.o \
-	tai_sub.o tai_unpack.o taia_add.o taia_approx.o \
-	taia_fmtfrac.o taia_frac.o taia_half.o taia_less.o \
-	taia_now.o taia_pack.o taia_sub.o taia_tai.o taia_unpack.o \
-	caldate_fmt.o caldate_scan.o caldate_fmjd.o caldate_mjd.o \
-	caldate_norm.o caldate_ster.o leapsecs_read.o \
-	leapsecs_init.o leapsecs_add.o leapsecs_sub.o caltime_fmt.o \
-	caltime_scan.o caltime_tai.o caltime_utc.o
+
+libtai.a: \
+makelib $(OBJS)
+	./makelib libtai.a $(OBJS)
+
+libtai.so: \
+makelibso $(OBJS) $(OBJS:S/.o$/.so/g)
+	./makelibso libtai.so $(OBJS:S/.o$/.so/g)
+	ln -sf libtai.so libtai.so.${LIBVERSION}
 
 load: \
 make-load warn-auto.sh systype
@@ -168,13 +169,24 @@
 	makelib
 	chmod 755 makelib
 
+make-makelibso: \
+make-makelibso.sh auto-ccld.sh
+	cat auto-ccld.sh make-makelibso.sh > make-makelibso
+	chmod 755 make-makelibso
+
+makelibso: \
+make-makelibso warn-auto.sh systype
+	( cat warn-auto.sh; ./make-makelibso "`cat systype`" ) > \
+	makelibso
+	chmod 755 makelibso
+
 man: \
 tai.0 tai_now.0 tai_pack.0 taia.0 taia_now.0 taia_pack.0 caldate.0 \
 caldate_mjd.0 caltime.0 caltime_tai.0 leapsecs.0
 
 nowutc: \
 load nowutc.o libtai.a
-	./load nowutc libtai.a 
+	./load nowutc -L. -ltai 
 
 nowutc.o: \
 compile nowutc.c leapsecs.h tai.h uint64.h taia.h caltime.h caldate.h
@@ -291,7 +303,7 @@
 
 yearcal: \
 load yearcal.o libtai.a
-	./load yearcal libtai.a 
+	./load yearcal -L. -ltai 
 
 yearcal.o: \
 compile yearcal.c caldate.h