diff options
author | Diego Biurrun | 2008-01-27 23:28:56 +0000 |
---|---|---|
committer | Diego Biurrun | 2008-01-27 23:28:56 +0000 |
commit | bca9e0bcf17693f77d9e661e2e63baf2722797bc (patch) | |
tree | 3a4810f2c0e84881fcea9341ef7122b9ea786683 /common.mak | |
parent | fe34942e922aa9574ea7cc139b32a7e076fd7607 (diff) |
Move common test program infrastructure to common.mak.
Originally committed as revision 11645 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 |