X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=Makefile.in;h=78b82fba6bcb511a8b3302cad3a3c1cb014e7c67;hp=f98bbfc83e0a9f92db45582454b63d472305b696;hb=614bef1bce4e94e7774d965b790a1d95b55b81bc;hpb=534acae966e3b9dff5501193ce9b863afb7a41da diff --git a/Makefile.in b/Makefile.in index f98bbfc..78b82fb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -6,11 +6,12 @@ includedir = @includedir@ libdir = @libdir@ datarootdir = @datarootdir@ datadir = @datadir@ +with_demo_app = @with_demo_app@ CC=@CC@ CXX=@CXX@ CXXFLAGS=-Wall @CXXFLAGS@ -I$(GTEST_DIR)/include @Eigen3_CFLAGS@ @GLEW_CFLAGS@ -LDFLAGS=@GLEW_LIBS@ @SDL_LIBS@ +LDFLAGS=@GLEW_LIBS@ @SDL_LIBS@ -lpthread DEMO_LDFLAGS=@SDL_image_LIBS@ -lrt -lpthread @libpng_LIBS@ RANLIB=ranlib INSTALL=install @@ -53,16 +54,21 @@ UNTESTED_EFFECTS = sandbox_effect UNTESTED_EFFECTS += mirror_effect UNTESTED_EFFECTS += resize_effect UNTESTED_EFFECTS += vignette_effect +UNTESTED_EFFECTS += multiply_effect EFFECTS = $(TESTED_EFFECTS) $(UNTESTED_EFFECTS) # Unit tests. TESTS=effect_chain_test $(TESTED_INPUTS:=_test) $(TESTED_EFFECTS:=_test) -LIB_OBJS=effect_util.o util.o widgets.o effect.o effect_chain.o init.o $(INPUTS:=.o) $(EFFECTS:=.o) +LIB_OBJS=effect_util.o util.o widgets.o effect.o effect_chain.o init.o resource_pool.o $(INPUTS:=.o) $(EFFECTS:=.o) # Default target: -all: $(TESTS) demo +all: libmovit.a $(TESTS) + +ifeq ($(with_demo_app),yes) +all: demo +endif # Google Test and other test library functions. TEST_OBJS = gtest-all.o gtest_sdl_main.o test_util.o @@ -116,7 +122,7 @@ coverage: check lcov --remove movit.info '*_test.cpp' '*/test_util.{cpp,h}' -o movit.info genhtml -o coverage movit.info -HDRS = effect_chain.h effect.h input.h image_format.h init.h util.h defs.h +HDRS = effect_chain.h effect_util.h effect.h input.h image_format.h init.h util.h defs.h resource_pool.h HDRS += $(INPUTS:=.h) HDRS += $(EFFECTS:=.h)