open-src/lib/Makefile.inc
changeset 1196 1ce455dae979
parent 970 272328fe1b4a
child 1339 4f152696e5f2
equal deleted inserted replaced
1195:5257d09d4f0a 1196:1ce455dae979
     1 # -*- Makefile -*- rules common to most X.Org library modules
     1 # -*- Makefile -*- rules common to most X.Org library modules
     2 #
     2 #
     3 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
     3 # Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
     4 #
     4 #
     5 # Permission is hereby granted, free of charge, to any person obtaining a
     5 # Permission is hereby granted, free of charge, to any person obtaining a
     6 # copy of this software and associated documentation files (the "Software"),
     6 # copy of this software and associated documentation files (the "Software"),
     7 # to deal in the Software without restriction, including without limitation
     7 # to deal in the Software without restriction, including without limitation
     8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
     8 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
    43 # Changes to apply to man pages
    43 # Changes to apply to man pages
    44 MODULE_MTLEVEL_DEFAULT	= $(MODULE_MTLEVEL_SET:yes=$(POUND_SIGN))
    44 MODULE_MTLEVEL_DEFAULT	= $(MODULE_MTLEVEL_SET:yes=$(POUND_SIGN))
    45 $(MODULE_MTLEVEL_DEFAULT)	MODULE_MTLEVEL=See XInitThreads(3X11)
    45 $(MODULE_MTLEVEL_DEFAULT)	MODULE_MTLEVEL=See XInitThreads(3X11)
    46 MODTYPE_SUNTOUCH_MAN_FLAGS= -l $(LIBNAME) -a '{MT-Level, $(MODULE_MTLEVEL)}'
    46 MODTYPE_SUNTOUCH_MAN_FLAGS= -l $(LIBNAME) -a '{MT-Level, $(MODULE_MTLEVEL)}'
    47 
    47 
    48 # Add -lc to library link except for the handful of libraries that don't 
       
    49 # need it
       
    50 LIBC_DEFAULT		= $(NEED_LIBC:no=$(POUND_SIGN))
       
    51 $(LIBC_DEFAULT)		LIBC=-lc
       
    52 
       
    53 # Flags to build & link libraries with
    48 # Flags to build & link libraries with
    54 MODTYPE_CPPFLAGS=$(LIB_CPPFLAGS)
    49 MODTYPE_CPPFLAGS=$(LIB_CPPFLAGS)
    55 MODTYPE_CFLAGS=$(LIB_CFLAGS)
    50 MODTYPE_CFLAGS=$(LIB_CFLAGS)
    56 MODTYPE_CXXFLAGS=$(LIB_CXXFLAGS)
    51 MODTYPE_CXXFLAGS=$(LIB_CXXFLAGS)
    57 MODTYPE_LDFLAGS=$(LIB_LDFLAGS) $(LIBC)
    52 MODTYPE_LDFLAGS=$(LIB_LDFLAGS) -lc
    58 MODTYPE_LD_OPTIONS=$(LIB_REQUIRED_LDFLAGS)
    53 MODTYPE_LD_OPTIONS=$(LIB_REQUIRED_LDFLAGS)
    59 
    54 
    60 # Additional command line options to GNU autoconf configure script
    55 # Additional command line options to GNU autoconf configure script
    61 MODTYPE_CONFIG_OPTS = --enable-shared=yes --enable-static=no \
    56 MODTYPE_CONFIG_OPTS = --enable-shared=yes --enable-static=no \
    62     --with-lint --enable-lint-library --with-pic \
    57     --with-lint --enable-lint-library --with-pic \