]> git.sesse.net Git - movit/blobdiff - Makefile
Make the blur use the resize functionality, which also unbreaks the in-between sampli...
[movit] / Makefile
index 8e35cfa19198723b77bce663eb69e0afba764119..96ff15ced695e8a1a9eb2d9ddafb6f8991ad1b51 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,40 @@
 CC=gcc
-CFLAGS=-std=gnu99 -Wall
+CXX=g++
+CXXFLAGS=-Wall -g
 LDFLAGS=-lSDL -lSDL_image -lGL
 
-test: test.o
-       $(CC) -o test test.o $(LDFLAGS)
+# Core.
+OBJS=main.o util.o widgets.o effect.o effect_chain.o
 
-.o: .c
-       $(CC) $(CXXFLAGS) $(CCFLAGS) -o $@ $<
+# Inputs.
+OBJS += flat_input.o
+OBJS += ycbcr_input.o
+
+# Effects.
+OBJS += lift_gamma_gain_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 += mix_effect.o
+OBJS += resize_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