Check-in [0fae105f13]
Overview
Comment:Updated to build both debug library and release library
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0fae105f136b0c2a9dc5fce3846f12f04bda2d89
User & Date: rkeene on 2010-05-17 04:50:40
Other Links: manifest | tags
Context
2010-05-17
05:04
Updated to strip release library

Updated list of headers to check for check-in: b491412695 user: rkeene tags: trunk

04:50
Updated to build both debug library and release library check-in: 0fae105f13 user: rkeene tags: trunk
03:24
Added splint target to makefile check-in: b59eaf52c0 user: rkeene tags: trunk
Changes

Modified Makefile.in from [53575a9140] to [517d2e3149].

     1      1   CC = @PTHREAD_CC@
     2         -RELCFLAGS = @CFLAGS@ @PTHREAD_CFLAGS@
            2  +CFLAGS = @CFLAGS@ @PTHREAD_CFLAGS@
     3      3   DEBUGCFLAGS = @CFLAGS@ @PTHREAD_CFLAGS@ -DCACKEY_DEBUG=1
     4         -RELCPPFLAGS = @CPPFLAGS@ @DEFS@ -I./pkcs11/
            4  +CPPFLAGS = @CPPFLAGS@ @DEFS@ -I./pkcs11/
     5      5   DEBUGCPPFLAGS = @CPPFLAGS@ -DCACKEY_DEBUG=1 -I./pkcs11/ @DEFS@
     6         -CFLAGS = $(DEBUGCFLAGS)
     7         -CPPFLAGS = $(DEBUGCPPFLAGS)
     8      6   LDFLAGS = @LDFLAGS@
     9      7   LIBS = @LIBS@ @PTHREAD_LIBS@
    10      8   SHOBJFLAGS = @SHOBJFLAGS@
    11      9   SHOBJLDFLAGS = @SHOBJLDFLAGS@
    12     10   AR = @AR@
    13     11   RANLIB = @RANLIB@
    14     12   prefix = @prefix@
    15     13   exec_prefix = @exec_prefix@
    16     14   libdir = @libdir@
    17     15   @SET_MAKE@
    18     16   
    19         -all: libcackey.@SHOBJEXT@
           17  +all:
           18  +	$(MAKE) libcackey.@SHOBJEXT@
           19  +	-$(MAKE) libcackey_g.@SHOBJEXT@
    20     20   
    21     21   cackey.o: cackey.c asn1-x509.h config.h
    22     22   	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o cackey.o -c cackey.c
    23     23   
           24  +cackey_g.o: cackey.c asn1-x509.h config.h
           25  +	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) -o cackey_g.o -c cackey.c
           26  +
    24     27   asn1-x509.o: asn1-x509.c asn1-x509.h config.h
    25     28   	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o asn1-x509.o -c asn1-x509.c
    26     29   
           30  +asn1-x509_g.o: asn1-x509.c asn1-x509.h config.h
           31  +	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) -o asn1-x509_g.o -c asn1-x509.c
           32  +
    27     33   libcackey.@SHOBJEXT@: cackey.o asn1-x509.o
    28     34   	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey.@SHOBJEXT@ cackey.o asn1-x509.o $(LIBS)
    29     35   
    30         -test: test.c libcackey.@SHOBJEXT@
    31         -	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o test test.c -Wl,-R,. libcackey.@SHOBJEXT@
           36  +libcackey_g.@SHOBJEXT@: cackey_g.o asn1-x509_g.o
           37  +	$(CC) $(SHOBJFLAGS) $(DEBUGCPPFLAGS) $(DEBUGCFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey_g.@SHOBJEXT@ cackey_g.o asn1-x509_g.o $(LIBS)
           38  +
           39  +test: test.c libcackey_g.@SHOBJEXT@
           40  +	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o test test.c -Wl,-R,. libcackey_g.@SHOBJEXT@
    32     41   
    33     42   splint-cackey.txt: cackey.c asn1-x509.c asn1-x509.h config.h
    34     43   	splint $(CPPFLAGS) -weak +posixlib -I/usr/include/PCSC -Ipkcs11 cackey.c > splint-cackey.txt
    35     44   
    36     45   install: libcackey.@SHOBJEXT@
    37     46   	-mkdir "$(DESTDIR)$(libdir)"
    38     47   	cp libcackey.@SHOBJEXT@ "$(DESTDIR)$(libdir)/"
           48  +	-cp libcackey_g.@SHOBJEXT@ "$(DESTDIR)$(libdir)/"
    39     49   
    40     50   clean:
    41         -	rm -f libcackey.@SHOBJEXT@
    42         -	rm -f cackey.o asn1-x509.o
           51  +	rm -f libcackey.@SHOBJEXT@ libcackey_g.@SHOBJEXT@
           52  +	rm -f cackey.o asn1-x509.o cackey_g.o asn1-x509_g.o
    43     53   	rm -f test
    44     54   	rm -f splint-cackey.txt
    45     55   
    46     56   distclean: clean
    47     57   	rm -f config.log config.status config.h Makefile
    48     58   
    49     59   mrproper: distclean
    50     60   	rm -f configure config.h.in aclocal.m4 *~
    51     61   
    52     62   .PHONY: all clean distclean mrproper install