Diff

Differences From Artifact [af3c88d20b]:

To Artifact [e95bb2353e]:


    10     10   AR = @AR@
    11     11   RANLIB = @RANLIB@
    12     12   prefix = @prefix@
    13     13   exec_prefix = @exec_prefix@
    14     14   libdir = @libdir@
    15     15   @SET_MAKE@
    16     16   
    17         -all: cackey.@SHOBJEXT@
           17  +all: libcackey.@SHOBJEXT@
    18     18   
    19         -cackey.o: cackey.c
           19  +cackey.o: cackey.c asn1-x509.h
    20     20   	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o cackey.o -c cackey.c
    21     21   
    22         -cackey.@SHOBJEXT@: cackey.o
    23         -	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o cackey.@SHOBJEXT@ cackey.o $(LIBS)
           22  +asn1-x509.o: asn1-x509.c asn1-x509.h
           23  +	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) -o asn1-x509.o -c asn1-x509.c
           24  +
           25  +libcackey.@SHOBJEXT@: cackey.o asn1-x509.o
           26  +	$(CC) $(SHOBJFLAGS) $(CPPFLAGS) $(CFLAGS) $(SHOBJLDFLAGS) $(LDFLAGS) -o libcackey.@SHOBJEXT@ cackey.o asn1-x509.o $(LIBS)
           27  +
           28  +test: test.c libcackey.@SHOBJEXT@
           29  +	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o test test.c -Wl,-R,. libcackey.@SHOBJEXT@
    24     30   
    25         -install: cackey.@SHOBJEXT@
           31  +install: libcackey.@SHOBJEXT@
    26     32   	-mkdir "$(DESTDIR)$(libdir)"
    27         -	cp cackey.@SHOBJEXT@ "$(DESTDIR)$(libdir)/"
           33  +	cp libcackey.@SHOBJEXT@ "$(DESTDIR)$(libdir)/"
    28     34   
    29     35   clean:
    30         -	rm -f cackey.@SHOBJEXT@
           36  +	rm -f libcackey.@SHOBJEXT@
    31     37   	rm -f cackey.o
           38  +	rm -f test
    32     39   
    33     40   distclean: clean
    34     41   	rm -f config.log config.status config.h Makefile
    35     42   
    36     43   mrproper: distclean
    37     44   	rm -f configure config.h.in aclocal.m4 *~
    38     45   
    39     46   .PHONY: all clean distclean mrproper install