6726671207
PR: 19348 Submitted by: Mario Sergio Fujikawa Ferreira <lioux@uol.com.br>
117 lines
3.0 KiB
Plaintext
117 lines
3.0 KiB
Plaintext
--- 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
|