# Makefile for uuid library # written by nathan wagner and placed in the public domain OBJ = md5.o sha1.o rng.o internal.o CC=gcc # set the following for windows #LDFLAGS += -liphlpapi all: uuidgen windows: libpduuid.a uuidgen.o gcc $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS) -liphlpapi libpduuid.a: $(OBJ) ar rcuv $@ $+ ranlib $@ md5.o: md5.c gcc $(CFLAGS) -Wall -fPIC -DLTC_SMALL_CODE -c -o $@ $+ sha1.o: sha1.c gcc $(CFLAGS) -Wall -fPIC -DLTC_SMALL_CODE -c -o $@ $+ rng.o: rng.c gcc $(CFLAGS) -Wall -fPIC -c -o $@ $+ internal.o: internal.c gcc $(CFLAGS) -Wall -fPIC -c -o $@ $+ uuidgen: libpduuid.a uuidgen.o gcc $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS) clean: rm -f *.o *.a uuidgen postgres/*.o postgres/*.so