diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-print/c2esp/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-print/c2esp/files')
-rw-r--r-- | net-print/c2esp/files/c2esp-25c-ldflags-cppflags.patch | 32 | ||||
-rw-r--r-- | net-print/c2esp/files/c2esp-26-ldflags-cppflags.patch | 33 |
2 files changed, 65 insertions, 0 deletions
diff --git a/net-print/c2esp/files/c2esp-25c-ldflags-cppflags.patch b/net-print/c2esp/files/c2esp-25c-ldflags-cppflags.patch new file mode 100644 index 000000000000..a551cc0f46ab --- /dev/null +++ b/net-print/c2esp/files/c2esp-25c-ldflags-cppflags.patch @@ -0,0 +1,32 @@ +--- a/Makefile ++++ b/Makefile +@@ -166,16 +166,16 @@ + @echo + + c2esp: c2esp.o c2espcommon.o $(LIBJBG85) +- $(CC) $(CFLAGS) -o $@ c2esp.o c2espcommon.o -lcupsimage -lcups -lcupsdriver $(LIBJBG85) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ c2esp.o c2espcommon.o -lcupsimage -lcups -lcupsdriver $(LIBJBG85) + + c2espC: c2espC.o c2espcommon.o +- $(CC) $(CFLAGS) -o $@ c2espC.o c2espcommon.o -lcupsimage -lcups -lcupsdriver -lz ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ c2espC.o c2espcommon.o -lcupsimage -lcups -lcupsdriver -lz + + command2esp: command2esp.o c2espcommon.o +- $(CC) $(CFLAGS) -o $@ command2esp.o c2espcommon.o -lcups -lcupsdriver ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ command2esp.o c2espcommon.o -lcups -lcupsdriver + + myopldecode: myopldecode.o $(LIBJBG) +- $(CC) $(CFLAGS) -o $@ $@.o $(LIBJBG) -lz ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.o $(LIBJBG) -lz + + # + # Installation rules +@@ -351,3 +326,8 @@ + command2esp.o: c2espcommon.h + c2espcommon.o: c2espcommon.h + ++ ++# Respect CPPFLAGS. ++.SUFFIXES: .c .o ++.c.o: ++ $(CC) -c $(CFLAGS) $(CPPFLAGS) -o '$@' '$<' diff --git a/net-print/c2esp/files/c2esp-26-ldflags-cppflags.patch b/net-print/c2esp/files/c2esp-26-ldflags-cppflags.patch new file mode 100644 index 000000000000..1ea36482687d --- /dev/null +++ b/net-print/c2esp/files/c2esp-26-ldflags-cppflags.patch @@ -0,0 +1,33 @@ +diff -Naur a/Makefile b/Makefile +--- a/Makefile 2012-09-06 00:18:06.000000000 +0100 ++++ b/Makefile 2013-08-01 19:56:01.884969274 +0100 +@@ -234,16 +234,16 @@ + @echo + + c2esp: c2esp.o c2espcommon.o $(LIBJBG85) +- $(CC) $(CFLAGS) -o $@ c2esp.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) $(LIBJBG85) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ c2esp.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) $(LIBJBG85) + + c2espC: c2espC.o c2espcommon.o +- $(CC) $(CFLAGS) -o $@ c2espC.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) -lz ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ c2espC.o c2espcommon.o $(LIBCUPSDRIVER) $(LIBCUPSIMAGE) -lz + + command2esp: command2esp.o c2espcommon.o +- $(CC) $(CFLAGS) -o $@ command2esp.o c2espcommon.o $(LIBCUPSDRIVER) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ command2esp.o c2espcommon.o $(LIBCUPSDRIVER) + + myopldecode: myopldecode.o $(LIBJBG) +- $(CC) $(CFLAGS) -o $@ $@.o $(LIBJBG) -lz ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.o $(LIBJBG) -lz + + # + # Installation rules +@@ -403,3 +403,8 @@ + command2esp.o: c2espcommon.h + c2espcommon.o: c2espcommon.h + ++# Respect CPPFLAGS. ++.SUFFIXES: .c .o ++.c.o: ++ $(CC) -c $(CFLAGS) $(CPPFLAGS) -o '$@' '$<' ++ |