]> git.sesse.net Git - movit/blob - Makefile
needs_update should be set even after we have created the texture, since we have...
[movit] / Makefile
1 CC=gcc
2 CXX=g++
3 CXXFLAGS=-Wall -g $(shell pkg-config --cflags eigen3 )
4 LDFLAGS=-lSDL -lSDL_image -lGL -lrt
5 RANLIB=ranlib
6
7 TEST_OBJS=main.o
8
9 # Core.
10 LIB_OBJS=util.o widgets.o effect.o effect_chain.o
11
12 # Inputs.
13 LIB_OBJS += flat_input.o
14 LIB_OBJS += ycbcr_input.o
15
16 # Effects.
17 LIB_OBJS += lift_gamma_gain_effect.o
18 LIB_OBJS += white_balance_effect.o
19 LIB_OBJS += gamma_expansion_effect.o
20 LIB_OBJS += gamma_compression_effect.o
21 LIB_OBJS += colorspace_conversion_effect.o
22 LIB_OBJS += saturation_effect.o
23 LIB_OBJS += vignette_effect.o
24 LIB_OBJS += mirror_effect.o
25 LIB_OBJS += blur_effect.o
26 LIB_OBJS += diffusion_effect.o
27 LIB_OBJS += glow_effect.o
28 LIB_OBJS += unsharp_mask_effect.o
29 LIB_OBJS += mix_effect.o
30 LIB_OBJS += resize_effect.o
31 LIB_OBJS += deconvolution_sharpen_effect.o
32 LIB_OBJS += sandbox_effect.o
33
34 OBJS=$(TEST_OBJS) $(LIB_OBJS)
35
36 # A small test program (not a unit test).
37 test: libmovit.a $(TEST_OBJS)
38         $(CXX) -o test $(TEST_OBJS) libmovit.a $(LDFLAGS)
39
40 # The library itself.
41 libmovit.a: $(LIB_OBJS)
42         $(AR) rc $@ $(LIB_OBJS)
43         $(RANLIB) $@
44
45 %.o: %.cpp
46         $(CXX) -MMD $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
47
48 DEPS=$(OBJS:.o=.d)
49 -include $(DEPS)
50
51 clean:
52         $(RM) test libmovit.a $(OBJS) $(DEPS)
53
54 .PHONY: clean