X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=Makefile;h=301aa2fe297b7561e6d61bcad6e64bee09ceb636;hb=6da2b27aecd1e3ccea21abc6f57e219cd811aab6;hp=af7ca8e8ee5f862f6e419edd0c9a61a7e4e96d5e;hpb=8df9b9f19175effb728f3b587a65dd753457670e;p=movit diff --git a/Makefile b/Makefile index af7ca8e..301aa2f 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,43 @@ CC=gcc CXX=g++ -CXXFLAGS=-Wall -LDFLAGS=-lSDL -lSDL_image -lGL +CXXFLAGS=-Wall -g $(shell pkg-config --cflags eigen3 ) +LDFLAGS=-lSDL -lSDL_image -lGL -lrt -test: test.o - $(CXX) -o test test.o $(LDFLAGS) +# Core. +OBJS=main.o util.o widgets.o effect.o effect_chain.o -.o: .cpp - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $< +# Inputs. +OBJS += flat_input.o +OBJS += ycbcr_input.o + +# Effects. +OBJS += lift_gamma_gain_effect.o +OBJS += white_balance_effect.o +OBJS += gamma_expansion_effect.o +OBJS += gamma_compression_effect.o +OBJS += colorspace_conversion_effect.o +OBJS += saturation_effect.o +OBJS += vignette_effect.o +OBJS += mirror_effect.o +OBJS += blur_effect.o +OBJS += diffusion_effect.o +OBJS += glow_effect.o +OBJS += unsharp_mask_effect.o +OBJS += mix_effect.o +OBJS += resize_effect.o +OBJS += deconvolution_sharpen_effect.o +OBJS += sandbox_effect.o + +test: $(OBJS) + $(CXX) -o test $(OBJS) $(LDFLAGS) + +%.o: %.cpp + $(CXX) -MMD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< + +DEPS=$(OBJS:.o=.d) +-include $(DEPS) clean: - $(RM) test test.o + $(RM) test $(OBJS) $(DEPS) .PHONY: clean