]> pd.if.org Git - uuid/blobdiff - Makefile
added command line uuidgen program
[uuid] / Makefile
index 3dd183ce3c498be3683a5902e9774e37a3f3845f..52d7b7d2826b1310b0663f5281403fcb4267a105 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
@@ -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)