]> pd.if.org Git - uuid/blob - Makefile
remove unused variable from makefile
[uuid] / Makefile
1 # Makefile for uuid library
2 # written by nathan wagner and placed in the public domain
3
4 OBJ     = md5.o sha1.o rng.o internal.o
5 CC=gcc
6 CFLAGS=-Wall -I. -L.
7
8 # set the following for windows
9 #LDFLAGS += -liphlpapi
10
11 all:    libpduuid.a uuidgen
12
13 windows:        libpduuid.a uuidgen.o
14         $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen.o -lpduuid $(LDFLAGS) -liphlpapi
15
16 libpduuid.a:    $(OBJ)
17         ar rcuv $@ $+
18         ranlib $@
19
20 t/%.t:  t/%.o t/ctap.o libpduuid.a
21         $(CC) $(CFLAGS) -Wall -I. -o $@ $< t/ctap.o -lpduuid
22
23 test:   t/md5.t t/sha1.t t/uuidgen.t libpduuid.a
24         prove t/*.t
25
26 md5.o:  md5.c
27         $(CC) $(CFLAGS) -Wall -fPIC -DLTC_SMALL_CODE -c -o $@ $+
28
29 sha1.o: sha1.c
30         $(CC) $(CFLAGS) -Wall -fPIC -DLTC_SMALL_CODE -c -o $@ $+
31
32 rng.o:  rng.c
33         $(CC) $(CFLAGS) -Wall -fPIC -c -o $@ $+
34
35 internal.o:     internal.c
36         $(CC) $(CFLAGS) -Wall -fPIC -c -o $@ $+
37
38 uuidgen2:       libpduuid.a uuidgen2.o
39         $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen2.o -lpduuid $(LDFLAGS)
40
41 uuidgen:        libpduuid.a uuidgen.o warn.o
42         $(CC) $(CFLAGS) -Wall -L. -o $@ uuidgen.o warn.o -lpduuid $(LDFLAGS)
43
44 clean:
45         rm -f *.o *.a uuidgen postgres/*.o postgres/*.so