Revision bca9e0bc common.mak
common.mak | ||
---|---|---|
52 | 52 |
|
53 | 53 |
clean:: |
54 | 54 |
rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \ |
55 |
*.def *.dll.a *.exp *.ho *.map |
|
55 |
*.def *.dll.a *.exp *.ho *.map $(TESTS)
|
|
56 | 56 |
|
57 | 57 |
distclean: clean |
58 | 58 |
rm -f .depend |
... | ... | |
98 | 98 |
rm -f $(addprefix "$(INCDIR)/",$(HEADERS)) |
99 | 99 |
rm -f "$(LIBDIR)/pkgconfig/lib$(NAME).pc" |
100 | 100 |
|
101 |
.PHONY: all depend dep clean distclean install* uninstall* |
|
101 |
tests: $(TESTS) |
|
102 |
|
|
103 |
%-test$(EXESUF): %.c $(LIBNAME) |
|
104 |
$(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) |
|
105 |
|
|
106 |
.PHONY: all depend dep clean distclean install* uninstall* tests |
|
102 | 107 |
|
103 | 108 |
-include .depend |
Also available in: Unified diff