X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=ed7deb6e276d249255d98a461478e673428ab83e;hb=89078e281093c442c5275050cad8867abc6885bf;hp=f2e67a9fcae6eefcd4623f37fbfc37c52ff3b35f;hpb=8928a8db86c5502243e619a7db757a324f859fd2;p=uuid diff --git a/Makefile b/Makefile index f2e67a9..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) -Wall -I. -o $@ $+ -lpduuid +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)