CXX = g++ LIBS = -lgd -lm INSTALLDIR = ../linux PROGRAMS = yliluoma_ordered_dither_1a \ yliluoma_ordered_dither_1ba \ yliluoma_ordered_dither_1bb \ yliluoma_ordered_dither_1c \ yliluoma_ordered_dither_1d \ yliluoma_ordered_dither_2a \ yliluoma_ordered_dither_2b \ yliluoma_ordered_dither_3a \ adobelike_pattern_dither all: $(PROGRAMS) yliluoma_ordered_dither_1a: yliluoma_ordered_dither_1a.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) yliluoma_ordered_dither_1ba: yliluoma_ordered_dither_1ba.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) yliluoma_ordered_dither_1bb: yliluoma_ordered_dither_1bb.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) yliluoma_ordered_dither_1c: yliluoma_ordered_dither_1c.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) yliluoma_ordered_dither_1d: yliluoma_ordered_dither_1d.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) yliluoma_ordered_dither_2a: yliluoma_ordered_dither_2a.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) yliluoma_ordered_dither_2b: yliluoma_ordered_dither_2b.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) yliluoma_ordered_dither_3a: yliluoma_ordered_dither_3a.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) adobelike_pattern_dither: adobelike_pattern_dither.cpp $(CXX) $< -fopenmp -o $@ $(LIBS) .PHONY: clean clean: rm -f $(PROGRAMS) rm -f *.o .PHONY: install install: mv yliluoma_ordered_dither_1a $(INSTALLDIR) mv yliluoma_ordered_dither_1ba $(INSTALLDIR) mv yliluoma_ordered_dither_1bb $(INSTALLDIR) mv yliluoma_ordered_dither_1c $(INSTALLDIR) mv yliluoma_ordered_dither_1d $(INSTALLDIR) mv yliluoma_ordered_dither_2a $(INSTALLDIR) mv yliluoma_ordered_dither_2b $(INSTALLDIR) mv yliluoma_ordered_dither_3a $(INSTALLDIR) mv adobelike_pattern_dither $(INSTALLDIR)