]> pd.if.org Git - uuid/blobdiff - Makefile
remove unused variable from makefile
[uuid] / Makefile
index f2e67a9fcae6eefcd4623f37fbfc37c52ff3b35f..4814ee0dad4183bcc7a070683eeec34924ec0653 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ CFLAGS=-Wall -I. -L.
 # set the following for windows
 #LDFLAGS += -liphlpapi
 
-all:   libpduuid.a
+all:   libpduuid.a uuidgen
 
 windows:       libpduuid.a uuidgen.o
        $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS) -liphlpapi
@@ -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,8 +35,11 @@ rng.o:       rng.c
 internal.o:    internal.c
        $(CC) $(CFLAGS) -Wall -fPIC -c -o $@ $+
 
-uuidgen:       libpduuid.a uuidgen.o
-       $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS)
+uuidgen2:      libpduuid.a uuidgen2.o
+       $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen2.o -lpduuid $(LDFLAGS)
+
+uuidgen:       libpduuid.a uuidgen.o warn.o
+       $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen.o warn.o -lpduuid $(LDFLAGS)
 
 clean:
        rm -f *.o *.a uuidgen postgres/*.o postgres/*.so