]> git.sesse.net Git - movit/blobdiff - Makefile
In overlay matte, use the luminance as a matte instead of each individual color compo...
[movit] / Makefile
index 8e35cfa19198723b77bce663eb69e0afba764119..b79bd788cafee6a1ddcca2d65f1b9793a5527436 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,17 @@
 CC=gcc
-CFLAGS=-std=gnu99 -Wall
+CXX=g++
+CXXFLAGS=-Wall -g
 LDFLAGS=-lSDL -lSDL_image -lGL
+OBJS=main.o util.o widgets.o effect.o effect_chain.o input.o
+OBJS += lift_gamma_gain_effect.o gamma_expansion_effect.o gamma_compression_effect.o colorspace_conversion_effect.o saturation_effect.o vignette_effect.o mirror_effect.o blur_effect.o diffusion_effect.o sandbox_effect.o
 
-test: test.o
-       $(CC) -o test test.o $(LDFLAGS)
+test: $(OBJS)
+       $(CXX) -o test $(OBJS) $(LDFLAGS)
 
-.o: .c
-       $(CC) $(CXXFLAGS) $(CCFLAGS) -o $@ $<
+.o: .cpp
+       $(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
 
 clean:
-       $(RM) test test.o
+       $(RM) test $(OBJS)
 
 .PHONY: clean