1 # Makefile for uuid library
2 # written by nathan wagner and placed in the public domain
4 OBJ = md5.o sha1.o rng.o internal.o
8 # set the following for windows
11 all: libpduuid.a uuidgen
13 windows: libpduuid.a uuidgen.o
14 $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS) -liphlpapi
20 t/%.t: t/%.o t/ctap.o libpduuid.a
21 $(CC) $(CFLAGS) -Wall -I. -o $@ $< t/ctap.o -lpduuid
23 test: t/md5.t t/sha1.t t/uuidgen.t libpduuid.a
27 $(CC) $(CFLAGS) -Wall -fPIC -DLTC_SMALL_CODE -c -o $@ $+
30 $(CC) $(CFLAGS) -Wall -fPIC -DLTC_SMALL_CODE -c -o $@ $+
33 $(CC) $(CFLAGS) -Wall -fPIC -c -o $@ $+
35 internal.o: internal.c
36 $(CC) $(CFLAGS) -Wall -fPIC -c -o $@ $+
38 uuidgen2: libpduuid.a uuidgen2.o
39 $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen2.o -lpduuid $(LDFLAGS)
41 uuidgen: libpduuid.a uuidgen.o warn.o
42 $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen.o warn.o -lpduuid $(LDFLAGS)
45 rm -f *.o *.a uuidgen postgres/*.o postgres/*.so