CXX=gcc OBJS = sobel.o imageIO.o sobel_func.o PRG = sobel all: ${PRG} sobel: ${OBJS} ${CXX} ${CXXFLAGS} -o $@ ${OBJS} imageIO.o: imageIO.c ${CXX} ${CXXFLAGS} -c -g $? sobel_func.o: sobel_func.c ${CXX} ${CXXFLAGS} -c -g $? sobel.o: sobel.c ${CXX} ${CXXFLAGS} -c -g $? run: convert car_gray.jpg -interlace partition RGB:car_gray ./${PRG} convert -depth 8 -size 448x273 gray:car_gray_sobel.raw car_gray_sobel.jpg gimp car_gray.jpg car_gray_sobel.jpg & tar: tar czvf Sobel.tgz ./* clean: rm -rf *~ *.o core sobel *.tgz car_gray.R car_gray.G car_gray.B car_gray_sobel.*