diff options
Diffstat (limited to 'common.mak')
-rw-r--r-- | common.mak | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common.mak b/common.mak index 8da643cc11..b809748f3e 100644 --- a/common.mak +++ b/common.mak @@ -52,7 +52,7 @@ depend dep: $(SRCS) clean:: rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \ - *.def *.dll.a *.exp *.ho *.map + *.def *.dll.a *.exp *.ho *.map $(TESTS) distclean: clean rm -f .depend @@ -98,6 +98,11 @@ uninstall-headers:: rm -f $(addprefix "$(INCDIR)/",$(HEADERS)) rm -f "$(LIBDIR)/pkgconfig/lib$(NAME).pc" -.PHONY: all depend dep clean distclean install* uninstall* +tests: $(TESTS) + +%-test$(EXESUF): %.c $(LIBNAME) + $(CC) $(CFLAGS) $(LDFLAGS) -DTEST -o $@ $^ $(EXTRALIBS) + +.PHONY: all depend dep clean distclean install* uninstall* tests -include .depend |