Home | History | Annotate | Download | only in genunix
      1     0   stevel #
      2     0   stevel # CDDL HEADER START
      3     0   stevel #
      4     0   stevel # The contents of this file are subject to the terms of the
      5  1676      jpk # Common Development and Distribution License (the "License").
      6  1676      jpk # You may not use this file except in compliance with the License.
      7     0   stevel #
      8     0   stevel # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9     0   stevel # or http://www.opensolaris.org/os/licensing.
     10     0   stevel # See the License for the specific language governing permissions
     11     0   stevel # and limitations under the License.
     12     0   stevel #
     13     0   stevel # When distributing Covered Code, include this CDDL HEADER in each
     14     0   stevel # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15     0   stevel # If applicable, add the following below this CDDL HEADER, with the
     16     0   stevel # fields enclosed by brackets "[]" replaced with your own identifying
     17     0   stevel # information: Portions Copyright [yyyy] [name of copyright owner]
     18     0   stevel #
     19     0   stevel # CDDL HEADER END
     20  1676      jpk 
     21  1676      jpk 
     22     0   stevel #
     23     0   stevel #
     24  3434    esaxe # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
     25     0   stevel # Use is subject to license terms.
     26     0   stevel #
     27     0   stevel #ident	"%Z%%M%	%I%	%E% SMI"
     28     0   stevel 
     29     0   stevel MODULE = genunix.so
     30     0   stevel MDBTGT = kvm
     31     0   stevel 
     32  3446      mrj include ../../../common/modules/genunix/Makefile.files
     33  3446      mrj 
     34     0   stevel COMMONSRCS = \
     35  3446      mrj 	$(GENUNIX_SRCS)
     36     0   stevel 
     37     0   stevel KMODSRCS = \
     38     0   stevel 	$(COMMONSRCS)
     39     0   stevel 
     40     0   stevel MODSRCS = \
     41     0   stevel 	$(COMMONSRCS) \
     42     0   stevel 	typegraph.c
     43     0   stevel 
     44     0   stevel #
     45     0   stevel # This signals that $(KMODSRCS) != $(MODSRCS).  Typegraph is not usable under
     46     0   stevel # kmdb.  As such, we don't bother compiling it.
     47     0   stevel KMOD_SOURCES_DIFFERENT=$(POUND_SIGN)
     48     0   stevel 
     49     0   stevel include ../../../../Makefile.cmd
     50     0   stevel include ../../../../Makefile.cmd.64
     51     0   stevel include ../../Makefile.amd64
     52     0   stevel include ../../../Makefile.module
     53     0   stevel 
     54  4798    tomee dmod/$(MODULE) := LDLIBS += -lm
     55  4798    tomee 
     56     0   stevel #
     57     0   stevel # We are not actually hardwiring some dependency on i86pc, we just need to
     58     0   stevel # include sys/param.h with _MACHDEP defined, and this forces the inclusion of
     59     0   stevel # machparam.h, even though we don't use anything there.  This is a temporary
     60     0   stevel # kludge until we invent -DDONTINCLUDEMACHPARAM or something.
     61     0   stevel #
     62     0   stevel CPPFLAGS += -I$(SRC)/uts/i86pc
     63  5084  johnlev CPPFLAGS += -I$(SRC)/uts/i86xpv
     64     0   stevel 
     65     0   stevel # Needed to include c2/audit.h (from cred.h)
     66     0   stevel CPPFLAGS += -I$(SRC)/uts/common
     67     0   stevel 
     68     0   stevel # Needed to find include file mutex_impl.h
     69     0   stevel CPPFLAGS += -I$(SRC)/uts/intel
     70