Sample program for converting RGB to YCbCr to DCT coefficients and vice versa.
LIBSDL = -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread
PROG = dctplayer
CC=g++
INCLS = -I/usr/include
#source codes
OBJ1 = dctplayer.o encode.o
OBJ2 = rgb_ybr.o dct_video.o
#$< evaluates to the target's dependencies,
#$@ evaluates to the target
$(PROG): $(OBJ1) $(OBJ2)
$(CC) -o $@ $(OBJ1) $(OBJ2) $(LIBSDL)
$(OBJ1):
$(CC) -c $*.cpp $(INCLS)
$(OBJ2):
$(CC) -c $*.cpp $(INCLS)
clean:
rm $(OBJ1)