diff options
Diffstat (limited to 'ppdc/Makefile')
-rw-r--r-- | ppdc/Makefile | 100 |
1 files changed, 10 insertions, 90 deletions
diff --git a/ppdc/Makefile b/ppdc/Makefile index bdf8e1727..e56398865 100644 --- a/ppdc/Makefile +++ b/ppdc/Makefile @@ -1,7 +1,7 @@ # # Makefile for the CUPS PPD Compiler. # -# Copyright 2007-2017 by Apple Inc. +# Copyright 2007-2018 by Apple Inc. # Copyright 2002-2006 by Easy Software Products. # # These coded instructions, statements, and computer programs are the @@ -52,7 +52,6 @@ OBJS = \ ppdpo.o \ testcatalog.o LIBTARGETS = \ - $(LIBCUPSPPDC) \ libcupsppdc.a UNITTARGETS = \ ppdc-static \ @@ -102,7 +101,6 @@ clean: $(RM) $(TARGETS) $(UNITTARGETS) genstrings $(RM) -r ppd ppd2 $(RM) sample-import.drv sample.c test.drv - $(RM) libcupsppdc.so libcupsppdc.dylib # @@ -153,40 +151,13 @@ install-exec: # install-headers: - if test "x$(privateinclude)" != x; then \ - echo Installing private header files into $(PRIVATEINCLUDE)...; \ - $(INSTALL_DIR) -m 755 $(PRIVATEINCLUDE); \ - $(INSTALL_DATA) ppdc.h $(PRIVATEINCLUDE); \ - fi # # Install libraries... # -install-libs: $(INSTALLSTATIC) - echo Installing libraries in $(LIBDIR)... - $(INSTALL_DIR) -m 755 $(LIBDIR) - $(INSTALL_LIB) $(LIBCUPSPPDC) $(LIBDIR) - if test $(LIBCUPSPPDC) = "libcupsppdc.so.1"; then \ - $(RM) $(LIBDIR)/`basename $(LIBCUPSPPDC) .1`; \ - $(LN) $(LIBCUPSPPDC) $(LIBDIR)/`basename $(LIBCUPSPPDC) .1`; \ - fi - if test $(LIBCUPSPPDC) = "libcupsppdc.1.dylib"; then \ - $(RM) $(LIBDIR)/libcupsppdc.dylib; \ - $(LN) $(LIBCUPSPPDC) $(LIBDIR)/libcupsppdc.dylib; \ - fi - if test "x$(SYMROOT)" != "x"; then \ - $(INSTALL_DIR) $(SYMROOT); \ - cp $(LIBCUPSPPDC) $(SYMROOT); \ - dsymutil $(SYMROOT)/$(LIBCUPSPPDC); \ - fi - -installstatic: - $(INSTALL_DIR) -m 755 $(LIBDIR) - $(INSTALL_LIB) -m 755 libcupsppdc.a $(LIBDIR) - $(RANLIB) $(LIBDIR)/libcupsppdc.a - $(CHMOD) 555 $(LIBDIR)/libcupsppdc.a +install-libs: # @@ -199,16 +170,6 @@ uninstall: done $(RM) $(DATADIR)/drv/sample.drv $(RMDIR) $(DATADIR)/drv - $(RM) $(LIBDIR)/libcupsppdc.1.dylib - $(RM) $(LIBDIR)/libcupsppdc.a - $(RM) $(LIBDIR)/libcupsppdc.dylib - $(RM) $(LIBDIR)/libcupsppdc.so - $(RM) $(LIBDIR)/libcupsppdc.so.1 - -$(RMDIR) $(LIBDIR) - -if test "x$(privateinclude)" != x; then \ - $(RM) $(PRIVATEINCLUDE)/ppdc.h; \ - $(RMDIR) $(PRIVATEINCLUDE); \ - fi # @@ -236,9 +197,9 @@ genstrings: genstrings.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) \ # ppdc, the PPD compiler. # -ppdc: ppdc.o $(LIBCUPSPPDC) ../cups/$(LIBCUPS) +ppdc: ppdc.o libcupsppdc.a ../cups/$(LIBCUPS) echo Linking $@... - $(LD_CXX) $(LDFLAGS) -o $@ ppdc.o -L. -lcupsppdc $(LIBS) + $(LD_CXX) $(LDFLAGS) -o $@ ppdc.o libcupsppdc.a $(LIBS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ @@ -257,9 +218,9 @@ ppdc-static: ppdc.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) foo.drv foo-fr.po # ppdhtml, the PPD to HTML utility. # -ppdhtml: ppdhtml.o $(LIBCUPSPPDC) ../cups/$(LIBCUPS) +ppdhtml: ppdhtml.o libcupsppdc.a ../cups/$(LIBCUPS) echo Linking $@... - $(LD_CXX) $(LDFLAGS) -o $@ ppdhtml.o -L. -lcupsppdc $(LIBS) + $(LD_CXX) $(LDFLAGS) -o $@ ppdhtml.o libcupsppdc.a $(LIBS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ @@ -267,9 +228,9 @@ ppdhtml: ppdhtml.o $(LIBCUPSPPDC) ../cups/$(LIBCUPS) # ppdi, import PPD files. # -ppdi: ppdi.o $(LIBCUPSPPDC) ../cups/$(LIBCUPS) +ppdi: ppdi.o libcupsppdc.a ../cups/$(LIBCUPS) echo Linking $@... - $(LD_CXX) $(LDFLAGS) -o $@ ppdi.o -L. -lcupsppdc $(LIBS) + $(LD_CXX) $(LDFLAGS) -o $@ ppdi.o libcupsppdc.a $(LIBS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ @@ -306,9 +267,9 @@ ppdmerge: ppdmerge.o ../cups/$(LIBCUPS) # ppdpo, create message catalog files. # -ppdpo: ppdpo.o $(LIBCUPSPPDC) ../cups/$(LIBCUPS) +ppdpo: ppdpo.o libcupsppdc.a ../cups/$(LIBCUPS) echo Linking $@... - $(LD_CXX) $(LDFLAGS) -o $@ ppdpo.o -L. -lcupsppdc $(LIBS) + $(LD_CXX) $(LDFLAGS) -o $@ ppdpo.o libcupsppdc.a $(LIBS) $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ @@ -325,47 +286,6 @@ testcatalog: testcatalog.o libcupsppdc.a ../cups/$(LIBCUPSSTATIC) # -# libcupsppdc.so.1 -# - -libcupsppdc.so.1: $(LIBOBJS) ../cups/$(LIBCUPS) - echo Linking $@... - $(DSOXX) $(ARCHFLAGS) $(LDFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS) $(LINKCUPS) - $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ - $(RM) `basename $@ .1` - $(LN) $@ `basename $@ .1` - - -# -# libcupsppdc.1.dylib -# - -libcupsppdc.1.dylib: $(LIBOBJS) ../cups/$(LIBCUPS) - echo Creating export list for $@... - nm -gm $(LIBOBJS) | grep "__text" | grep -v weak | awk '{print $$NF}' | sort >t.exp - echo Linking $@... - $(DSOXX) $(ARCHFLAGS) $(LDFLAGS) $(DSOFLAGS) -o $@ \ - -install_name $(libdir)/$@ \ - -current_version 1.0.0 \ - -compatibility_version 1.0.0 \ - -exported_symbols_list t.exp \ - $(LIBOBJS) $(LINKCUPS) $(COMMONLIBS) - $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@ - $(RM) libcupsppdc.dylib t.exp - $(LN) $@ libcupsppdc.dylib - - -# -# libcupsppdc.la -# - -libcupsppdc.la: $(LIBOBJS) ../cups/$(LIBCUPS) - echo Linking $@... - $(LD_CC) $(ARCHFLAGS) $(LDFLAGS) $(DSOFLAGS) -o $@ $(LIBOBJS:.o=.lo) -rpath $(LIBDIR) \ - -version-info 1:0 $(LINKCUPS) - - -# # libcupsppdc.a # |