summaryrefslogtreecommitdiffstats
path: root/Makefile
AgeCommit message (Collapse)Author
2023-07-10Makefile: fix undefined referencesAsbjørn Sloth Tønnesen
Compiling gives the following error, since the library is specified before the local objects: $ make […] cc -lpng16 build/main.o build/ql.o build/loadpng.o -o build/qlprint /usr/bin/ld: build/loadpng.o: in function `loadpng': …/src/loadpng.c:30: undefined reference to `png_sig_cmp' /usr/bin/ld: …/src/loadpng.c:35: undefined reference to `png_create_read_struct' /usr/bin/ld: …/src/loadpng.c:39: undefined reference to `png_create_info_struct' /usr/bin/ld: …/src/loadpng.c:43: undefined reference to `png_create_info_struct' […] collect2: error: ld returned 1 exit status make: *** [Makefile:28: build/qlprint] Error 1 After reordering: $ make […] cc build/main.o build/ql.o build/loadpng.o -lpng16 -o build/qlprint
2017-05-30Initial import.Johny Mattsson