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
7 # set the following for windows
12 windows: libpduuid.a uuidgen.o
13 gcc $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS) -liphlpapi
20 gcc $(CFLAGS) -Wall -fPIC -DLTC_SMALL_CODE -c -o $@ $+
23 gcc $(CFLAGS) -Wall -fPIC -DLTC_SMALL_CODE -c -o $@ $+
26 gcc $(CFLAGS) -Wall -fPIC -c -o $@ $+
28 internal.o: internal.c
29 gcc $(CFLAGS) -Wall -fPIC -c -o $@ $+
31 uuidgen: libpduuid.a uuidgen.o
32 gcc $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS)
35 rm -f *.o *.a uuidgen postgres/*.o postgres/*.so