]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - ppdc/Makefile
Drop API help for CGI, MIME, and PPD compiler libraries.
[thirdparty/cups.git] / ppdc / Makefile
index 1bf09dd6a88b37c5aad17986ce8b9d44ec535466..49b93e92d2511175d5ccc61f1a31dea2cf8b2d18 100644 (file)
@@ -1,9 +1,7 @@
 #
-# "$Id$"
-#
 # Makefile for the CUPS PPD Compiler.
 #
-# Copyright 2007-2014 by Apple Inc.
+# Copyright 2007-2016 by Apple Inc.
 # Copyright 2002-2006 by Easy Software Products.
 #
 # These coded instructions, statements, and computer programs are the
@@ -155,9 +153,11 @@ install-exec:
 #
 
 install-headers:
-       echo Installing header files in $(INCLUDEDIR)/cups...
-       $(INSTALL_DIR) -m 755 $(INCLUDEDIR)/cups
-       $(INSTALL_DATA) ppdc.h $(INCLUDEDIR)/cups
+       if test "x$(privateinclude)" != x; then \
+               echo Installing private header files into $(PRIVATEINCLUDE)...; \
+               $(INSTALL_DIR) -m 755 $(PRIVATEINCLUDE); \
+               $(INSTALL_DATA) ppdc.h $(PRIVATEINCLUDE); \
+       fi
 
 
 #
@@ -205,31 +205,10 @@ uninstall:
        $(RM) $(LIBDIR)/libcupsppdc.so
        $(RM) $(LIBDIR)/libcupsppdc.so.1
        -$(RMDIR) $(LIBDIR)
-       $(RM) $(INCLUDEDIR)/cups/ppdc.h
-       -$(RMDIR) $(INCLUDEDIR)/cups
-
-
-#
-# Automatic API help files...
-#
-
-apihelp:
-       mxmldoc --section "Programming" \
-               --title "PPD Compiler API" \
-               --css ../doc/cups-printable.css \
-               --header api-ppdc.header --intro api-ppdc.shtml \
-               api-ppdc.xml \
-               ppdc.h $(LIBOBJS:.o=.cxx) >../doc/help/api-ppdc.html
-       mxmldoc --tokens help/api-ppdc.html api-ppdc.xml >../doc/help/api-ppdc.tokens
-       $(RM) api-ppdc.xml
-
-framedhelp:
-       mxmldoc --framed api-ppdc \
-               --section "Programming" \
-               --title "PPD Compiler API" \
-               --css ../doc/cups-printable.css \
-               --header api-ppdc.header --intro api-ppdc.shtml \
-               ppdc.h $(LIBOBJS:.o=.cxx)
+       -if test "x$(privateinclude)" != x; then \
+               $(RM) $(PRIVATEINCLUDE)/ppdc.h; \
+               $(RMDIR) $(PRIVATEINCLUDE); \
+       fi
 
 
 #
@@ -347,14 +326,14 @@ libcupsppdc.so.1: $(LIBOBJS) ../cups/$(LIBCUPS)
 
 libcupsppdc.1.dylib:   $(LIBOBJS) ../cups/$(LIBCUPS)
        echo Creating export list for $@...
-       nm $(LIBOBJS) | grep "T __" | awk '{print $$3}' | sort >t.exp
+       nm -gm $(LIBOBJS) | grep "__text" | grep -v weak | awk '{print $$NF}' | sort >t.exp
        echo Linking $@...
        $(DSOXX) $(ARCHFLAGS) $(DSOFLAGS) -o $@ \
                -install_name $(libdir)/$@ \
                -current_version 1.0.0 \
                -compatibility_version 1.0.0 \
                -exported_symbols_list t.exp \
-               $(LIBOBJS) $(LINKCUPS)
+               $(LIBOBJS) $(LINKCUPS) $(COMMONLIBS)
        $(RM) libcupsppdc.dylib t.exp
        $(LN) $@ libcupsppdc.dylib
 
@@ -385,8 +364,3 @@ libcupsppdc.a:      $(LIBOBJS)
 #
 
 include Dependencies
-
-
-#
-# End of "$Id$".
-#