Diff

Differences From Artifact [97d5ce9303]:

To Artifact [5df2f0ed55]:


     6      6   LDFLAGS = @LDFLAGS@
     7      7   LIBS = @LIBS@ @PTHREAD_LIBS@
     8      8   SHOBJFLAGS = @SHOBJFLAGS@
     9      9   SHOBJLDFLAGS = @SHOBJLDFLAGS@
    10     10   AR = @AR@
    11     11   RANLIB = @RANLIB@
    12     12   STRIP = @STRIP@
           13  +OBJCOPY = @OBJCOPY@
    13     14   prefix = @prefix@
    14     15   exec_prefix = @exec_prefix@
    15     16   libdir = @libdir@
    16     17   @SET_MAKE@
    17     18   
    18     19   all:
    19     20   	$(MAKE) libcackey.@SHOBJEXT@
    20     21   	-$(MAKE) libcackey_g.@SHOBJEXT@
    21     22   
    22         -cackey.o: cackey.c cackey_builtin_certs.h sha1.h md5.h asn1-x509.h config.h
           23  +cackey.o: cackey.c cackey_builtin_certs.h sha1.c sha1.h md5.c md5.h asn1-x509.c asn1-x509.h config.h
    23     24   	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o cackey.o -c cackey.c
    24     25   
    25         -cackey_g.o: cackey.c cackey_builtin_certs.h sha1.h md5.h asn1-x509.h config.h
           26  +cackey_g.o: cackey.c cackey_builtin_certs.h sha1.c sha1.h md5.c md5.h asn1-x509.c asn1-x509.h config.h
    26     27   	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) -o cackey_g.o -c cackey.c
    27     28   
    28         -asn1-x509.o: asn1-x509.c asn1-x509.h config.h
    29         -	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o asn1-x509.o -c asn1-x509.c
    30         -
    31         -asn1-x509_g.o: asn1-x509.c asn1-x509.h config.h
    32         -	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) -o asn1-x509_g.o -c asn1-x509.c
    33         -
    34         -sha1.o: sha1.c sha1.h config.h
    35         -	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o sha1.o -c sha1.c
    36         -
    37         -sha1_g.o: sha1.c sha1.h config.h
    38         -	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) -o sha1_g.o -c sha1.c
    39         -
    40         -md5.o: md5.c md5.h config.h
    41         -	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o md5.o -c md5.c
    42         -
    43         -md5_g.o: md5.c md5.h config.h
    44         -	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) -o md5_g.o -c md5.c
    45         -
    46         -libcackey.@SHOBJEXT@: cackey.o asn1-x509.o sha1.o md5.o
    47         -	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey.@SHOBJEXT@ cackey.o asn1-x509.o sha1.o md5.o $(LIBS)
           29  +libcackey.@SHOBJEXT@: cackey.o
           30  +	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey.@SHOBJEXT@ cackey.o $(LIBS)
           31  +	-$(OBJCOPY) --wildcard --keep-global-symbol 'C_*' libcackey.@SHOBJEXT@
    48     32   	-$(STRIP) -x "libcackey.@SHOBJEXT@"
    49     33   
    50         -libcackey_g.@SHOBJEXT@: cackey_g.o asn1-x509_g.o sha1_g.o md5_g.o
    51         -	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey_g.@SHOBJEXT@ cackey_g.o asn1-x509_g.o sha1.o md5_g.o $(LIBS)
           34  +libcackey_g.@SHOBJEXT@: cackey_g.o
           35  +	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey_g.@SHOBJEXT@ cackey_g.o $(LIBS)
           36  +	-$(OBJCOPY) --wildcard --keep-global-symbol 'C_*' libcackey.@SHOBJEXT@
    52     37   
    53     38   test: test.c libcackey_g.@SHOBJEXT@
    54     39   	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o test test.c -Wl,-R,. libcackey_g.@SHOBJEXT@
    55     40   
    56     41   splint-cackey.txt: cackey.c cackey_builtin_certs.h asn1-x509.c asn1-x509.h config.h
    57     42   	splint $(DEBUGCPPFLAGS) -DCACKEY_PARANOID=1 -weak +posixlib -I/usr/include/PCSC -Ipkcs11 cackey.c > splint-cackey.txt
    58     43   
................................................................................
    63     48   	cp "libcackey.@SHOBJEXT@" "$(DESTDIR)$(libdir)/"
    64     49   	-cp "libcackey_g.@SHOBJEXT@" "$(DESTDIR)$(libdir)/"
    65     50   
    66     51   clean:
    67     52   	rm -f libcackey.@SHOBJEXT@ libcackey_g.@SHOBJEXT@
    68     53   	rm -f libcackey.@SHOBJEXT@.def libcackey_g.@SHOBJEXT@.def
    69     54   	rm -f libcackey.@SHOBJEXT@.a libcackey_g.@SHOBJEXT@.a
    70         -	rm -f cackey.o asn1-x509.o cackey_g.o asn1-x509_g.o sha1.o sha1_g.o md5.o md5_g.o
           55  +	rm -f cackey.o cackey_g.o
    71     56   	rm -f test
    72     57   	rm -f splint-cackey.txt
    73     58   
    74     59   distclean: clean
    75     60   	rm -f config.log config.status config.h Makefile
    76     61   
    77     62   mrproper: distclean
    78     63   	rm -f configure config.h.in aclocal.m4 *~
    79     64   
    80     65   .PHONY: all clean distclean mrproper install