X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=ed7deb6e276d249255d98a461478e673428ab83e;hb=c79f8a942740ec85af61103024b649174913f126;hp=35516fe8ba451c5ea79bca2fa86f36086c49d3de;hpb=c784264fc1aaa6a22eb718020ef5886087abd525;p=uuid diff --git a/Makefile b/Makefile index 35516fe..ed7deb6 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,10 @@ libpduuid.a: $(OBJ) ar rcuv $@ $+ ranlib $@ -t/%.t: t/%.o t/ctap.o - $(CC) $(CFLAGS) -lpduuid -Wall -I. -o $@ $+ +t/%.t: t/%.o t/ctap.o libpduuid.a + $(CC) $(CFLAGS) -Wall -I. -o $@ $< t/ctap.o -lpduuid -test: t/uuidgen.t libpduuid.a +test: t/md5.t t/sha1.t t/uuidgen.t libpduuid.a prove t/*.t md5.o: md5.c @@ -35,6 +35,9 @@ rng.o: rng.c internal.o: internal.c $(CC) $(CFLAGS) -Wall -fPIC -c -o $@ $+ +uuidgen2: libpduuid.a uuidgen2.o + $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen2.o -lpduuid $(LDFLAGS) + uuidgen: libpduuid.a uuidgen.o $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS)