modified: diffout.py
[GalaxyCodeBases.git] / c_cpp / lib / uthash / libut / Makefile
blob614358858d4c1ff9cfb63efd000165ba4897d80e
1 OBJS=libut.a
2 all: $(OBJS)
3 INCDIR=./include
4 CFLAGS+=-I$(INCDIR)
5 CFLAGS+=-Wall -Wextra
6 CFLAGS+=-g
8 libut.a: libut.o utvector.o utmm.o ringbuf.o
9 ar r $@ $^
11 libut.o: src/libut.c $(INCDIR)/libut.h
12 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
14 utvector.o: src/utvector.c $(INCDIR)/utvector.h
15 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
17 utmm.o: src/utmm.c $(INCDIR)/utmm.h
18 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
20 ringbuf.o: src/ringbuf.c $(INCDIR)/ringbuf.h
21 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
23 .PHONY: clean tests install
25 clean:
26 rm -f $(OBJS) *.o
27 make -C tests clean
29 tests: libut.a
30 make -C tests
32 install: libut.a
33 cp $< /usr/local/lib