Commit ade8e2cd7fd6629cbbb3caf17e21b396e08ac288
1 parent
45dac410
Remove unused gcc-linux make rules
I don't want to maintain them or make anyone think they should be used.
Showing
2 changed files
with
1 additions
and
88 deletions
README.md
| ... | ... | @@ -59,7 +59,7 @@ QPDF is known to build and pass its test suite with mingw (latest version tested |
| 59 | 59 | |
| 60 | 60 | # Additional Notes on Build |
| 61 | 61 | |
| 62 | -QPDF's build system, inspired by [abuild](http://www.abuild.org), can optionally use its own built-in rules rather than using libtool and obeying the compiler specified with configure. This can be enabled by passing `--with-buildrules=buildrules` where buildrules corresponds to one of the `.mk` files (other than `rules.mk`) in the make directory. This should never be necessary on a UNIX system, but may be necessary on a Windows system. See [README-windows.md](README-windows.md) for details. There is a `gcc-linux.mk` file enable `gcc-linux` build rules, but it is intended to help test the build system; Linux users should build with the `libtools` rules, which are enabled by default. | |
| 62 | +QPDF's build system, inspired by [abuild](http://www.abuild.org), can optionally use its own built-in rules rather than using libtool and obeying the compiler specified with configure. This can be enabled by passing `--with-buildrules=buildrules` where buildrules corresponds to one of the `.mk` files (other than `rules.mk`) in the make directory. This should never be necessary on a UNIX system, but may be necessary on a Windows system. See [README-windows.md](README-windows.md) for details. | |
| 63 | 63 | |
| 64 | 64 | The QPDF package provides some executables and a software library. A user manual can be found in the "doc" directory. The docbook sources to the user manual can be found in the `manual` directory. |
| 65 | 65 | ... | ... |
make/gcc-linux.mk deleted
| 1 | -# | |
| 2 | -# This file primarily exists for making it possible to test the build | |
| 3 | -# system and external library support from Linux. However, its use is | |
| 4 | -# strongly discouraged; use the (default) libtool rules for building | |
| 5 | -# on Linux. | |
| 6 | -# | |
| 7 | - | |
| 8 | -# --- Required interface definitions --- | |
| 9 | - | |
| 10 | -OBJ=o | |
| 11 | -LOBJ=o | |
| 12 | - | |
| 13 | -# Usage: $(call libname,base) | |
| 14 | -define libname | |
| 15 | -lib$(1).so | |
| 16 | -endef | |
| 17 | - | |
| 18 | -# Usage: $(call binname,base) | |
| 19 | -define binname | |
| 20 | -$(1) | |
| 21 | -endef | |
| 22 | - | |
| 23 | -# --- Required rule definitions --- | |
| 24 | - | |
| 25 | -# 1 2 3 | |
| 26 | -# Usage: $(call compile,src,includes,xflags) | |
| 27 | -define compile | |
| 28 | - $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(3)\ | |
| 29 | - $(call depflags,$(basename $(call src_to_obj,$(1)))) \ | |
| 30 | - $(foreach I,$(2),-I$(I)) \ | |
| 31 | - -c $(1) -o $(call src_to_obj,$(1)) | |
| 32 | -endef | |
| 33 | - | |
| 34 | -# 1 2 | |
| 35 | -# Usage: $(call c_compile,src,includes) | |
| 36 | -define c_compile | |
| 37 | - $(CC) $(CPPFLAGS) $(CFLAGS) \ | |
| 38 | - $(call depflags,$(basename $(call c_src_to_obj,$(1)))) \ | |
| 39 | - $(foreach I,$(2),-I$(I)) \ | |
| 40 | - -c $(1) -o $(call c_src_to_obj,$(1)) | |
| 41 | -endef | |
| 42 | - | |
| 43 | -define libcompile | |
| 44 | - $(CXX) $(CPPFLAGS) $(CXXFLAGS) -fpic \ | |
| 45 | - $(call depflags,$(basename $(call src_to_lobj,$(1)))) \ | |
| 46 | - $(foreach I,$(2),-I$(I)) \ | |
| 47 | - -c $(1) -o $(call src_to_lobj,$(1)) | |
| 48 | -endef | |
| 49 | -define c_libcompile | |
| 50 | - $(CC) $(CPPFLAGS) $(CXXFLAGS) -fpic \ | |
| 51 | - $(call depflags,$(basename $(call c_src_to_lobj,$(1)))) \ | |
| 52 | - $(foreach I,$(2),-I$(I)) \ | |
| 53 | - -c $(1) -o $(call c_src_to_lobj,$(1)) | |
| 54 | -endef | |
| 55 | - | |
| 56 | - | |
| 57 | -# 1 2 | |
| 58 | -# Usage: $(call makeslib,objs,library) | |
| 59 | -define makeslib | |
| 60 | - $(RM) $2 | |
| 61 | - $(AR) cru $(2) $(1) | |
| 62 | - $(RANLIB) $(2) | |
| 63 | -endef | |
| 64 | - | |
| 65 | -# 1 2 3 4 5 6 7 | |
| 66 | -# Usage: $(call makelib,objs,library,ldflags,libs,current,revision,age) | |
| 67 | -define makelib | |
| 68 | - $(RM) $(2) $(2).* | |
| 69 | - major=$$(( $(5) - $(7) )); \ | |
| 70 | - versuffix=$$major.$(7).$(6); \ | |
| 71 | - $(CXX) $(CXXFLAGS) -shared -o $(2).$$versuffix $(1) \ | |
| 72 | - -Wl,--soname -Wl,`basename $(2)`.$$major \ | |
| 73 | - $(3) $(4) && \ | |
| 74 | - ln -s `basename $(2)`.$$versuffix $(2) && \ | |
| 75 | - ln -s `basename $(2)`.$$versuffix $(2).$$major | |
| 76 | -endef | |
| 77 | - | |
| 78 | -# 1 2 3 4 | |
| 79 | -# Usage: $(call makebin,objs,binary,ldflags,libs) | |
| 80 | -define makebin | |
| 81 | - $(CXX) $(CXXFLAGS) $(1) -o $(2) $(LDFLAGS) $(3) $(4) | |
| 82 | -endef | |
| 83 | - | |
| 84 | -# Install target | |
| 85 | - | |
| 86 | -install: all | |
| 87 | - @echo Automated installation is not supported for buildrules=$(BUILDRULES) |