diff --git a/Makefile b/Makefile index 6b005f31..f2427e89 100644 --- a/Makefile +++ b/Makefile @@ -162,11 +162,29 @@ src/asm/parser.c: src/asm/parser.y echo "DEFS=$$DEFS"; \ ${BISON} $$DEFS -d ${YFLAGS} -o $@ $< +# Only RGBGFX uses libpng (POSIX make doesn't support pattern rules to cover all these) +src/gfx/main.o: src/gfx/main.cpp + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< +src/gfx/pal_packing.o: src/gfx/pal_packing.cpp + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< +src/gfx/pal_sorting.o: src/gfx/pal_sorting.cpp + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< +src/gfx/pal_spec.o: src/gfx/pal_spec.cpp + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< +src/gfx/process.o: src/gfx/process.cpp + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< +src/gfx/proto_palette.o: src/gfx/proto_palette.cpp + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< +src/gfx/reverse.o: src/gfx/reverse.cpp + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< +src/gfx/rgba.o: src/gfx/rgba.cpp + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< + .c.o: $Q${CC} ${REALCFLAGS} -c -o $@ $< .cpp.o: - $Q${CXX} ${REALCXXFLAGS} ${PNGCFLAGS} -c -o $@ $< + $Q${CXX} ${REALCXXFLAGS} -c -o $@ $< # Target used to remove all files generated by other Makefile targets