Print this page
4057 Add sfxge support
Contributed by Solarflare
Reviewed by: TBD
Approved by: TBD


   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  25 # Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  26 # Copyright 2013 Saso Kiselkov. All rights reserved.
  27 #
  28 
  29 #
  30 # uts/common/Makefile.rules
  31 #
  32 #       This Makefile defines all the file build rules for the directory
  33 # uts/common and its children. These are the source files which may
  34 # be considered common to all SunOS systems.
  35 #
  36 #       The following two-level ordering must be maintained in this file.
  37 #         Lines are sorted first in order of decreasing specificity based on
  38 #         the first directory component.  That is, sun4u rules come before
  39 #         sparc rules come before common rules.
  40 #
  41 #         Lines whose initial directory components are equal are sorted
  42 #         alphabetically by the remaining components.
  43 
  44 #


1421 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/scsi/adapters/iscsi/%.c
1422         $(COMPILE.c) -o $@ $<
1423         $(CTFCONVERT_O)
1424 
1425 $(OBJS_DIR)/%.o:                $(COMMONBASE)/iscsi/%.c
1426         $(COMPILE.c) -o $@ $<
1427         $(CTFCONVERT_O)
1428 
1429 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/inet/kifconf/%.c
1430         $(COMPILE.c) -o $@ $<
1431         $(CTFCONVERT_O)
1432 
1433 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/vr/%.c
1434         $(COMPILE.c) -o $@ $<
1435         $(CTFCONVERT_O)
1436 
1437 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/yge/%.c
1438         $(COMPILE.c) -o $@ $<
1439         $(CTFCONVERT_O)
1440 














1441 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/skd/%.c
1442         $(COMPILE.c) -o $@ $<
1443         $(CTFCONVERT_O)
1444 
1445 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/virtio/%.c
1446         $(COMPILE.c) -o $@ $<
1447         $(CTFCONVERT_O)
1448 
1449 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/vioblk/%.c
1450         $(COMPILE.c) -o $@ $<
1451         $(CTFCONVERT_O)
1452 
1453 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/vioif/%.c
1454         $(COMPILE.c) -o $@ $<
1455         $(CTFCONVERT_O)
1456 #
1457 # krtld must refer to its own bzero/bcopy until the kernel is fully linked
1458 #
1459 $(OBJS_DIR)/bootrd.o            := CPPFLAGS += -DKOBJ_OVERRIDES
1460 $(OBJS_DIR)/doreloc.o           := CPPFLAGS += -DKOBJ_OVERRIDES


2732 $(LINTS_DIR)/zlib_obj.ln:       $(ZLIB_OBJS:%.o=$(LINTS_DIR)/%.ln) \
2733                                 $(UTSBASE)/common/zmod/zlib_lint.c
2734         @($(LHEAD) $(LINT.c) -C $(LINTS_DIR)/zlib_obj \
2735             $(UTSBASE)/common/zmod/zlib_lint.c $(LTAIL))
2736 
2737 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/hxge/%.c
2738         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2739 
2740 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/tpm/%.c
2741         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2742 
2743 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/tpm/%.s
2744         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2745 
2746 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/vr/%.c
2747         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2748 
2749 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/yge/%.c
2750         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2751 











2752 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/skd/%.c
2753         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2754 
2755 $(LINTS_DIR)/%.ln:              $(COMMONBASE)/fsreparse/%.c
2756         @($(LHEAD) $(LINT.c) $< $(LTAIL))


   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
  25 # Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
  26 # Copyright 2013 Saso Kiselkov. All rights reserved.
  27 #
  28 
  29 #
  30 # uts/common/Makefile.rules
  31 #
  32 #       This Makefile defines all the file build rules for the directory
  33 # uts/common and its children. These are the source files which may
  34 # be considered common to all SunOS systems.
  35 #
  36 #       The following two-level ordering must be maintained in this file.
  37 #         Lines are sorted first in order of decreasing specificity based on
  38 #         the first directory component.  That is, sun4u rules come before
  39 #         sparc rules come before common rules.
  40 #
  41 #         Lines whose initial directory components are equal are sorted
  42 #         alphabetically by the remaining components.
  43 
  44 #


1421 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/scsi/adapters/iscsi/%.c
1422         $(COMPILE.c) -o $@ $<
1423         $(CTFCONVERT_O)
1424 
1425 $(OBJS_DIR)/%.o:                $(COMMONBASE)/iscsi/%.c
1426         $(COMPILE.c) -o $@ $<
1427         $(CTFCONVERT_O)
1428 
1429 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/inet/kifconf/%.c
1430         $(COMPILE.c) -o $@ $<
1431         $(CTFCONVERT_O)
1432 
1433 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/vr/%.c
1434         $(COMPILE.c) -o $@ $<
1435         $(CTFCONVERT_O)
1436 
1437 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/yge/%.c
1438         $(COMPILE.c) -o $@ $<
1439         $(CTFCONVERT_O)
1440 
1441 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/sfxge/%.c
1442         $(COMPILE.c) -o $@ $<
1443         $(CTFCONVERT_O)
1444 
1445 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/sfxge/common/%.c
1446         $(COMPILE.c) -o $@ $<
1447         $(CTFCONVERT_O)
1448 
1449 $(OBJS_DIR)/%.h.o:              $(UTSBASE)/common/io/sfxge/%.h
1450         $(CP) $< $(@:%.o=%.c)
1451         $(COMPILE.c) -o $@ $(@:%.o=%.c)
1452         $(RM) $(@:%.o=%.c)
1453         $(CTFCONVERT_O)
1454 
1455 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/skd/%.c
1456         $(COMPILE.c) -o $@ $<
1457         $(CTFCONVERT_O)
1458 
1459 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/virtio/%.c
1460         $(COMPILE.c) -o $@ $<
1461         $(CTFCONVERT_O)
1462 
1463 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/vioblk/%.c
1464         $(COMPILE.c) -o $@ $<
1465         $(CTFCONVERT_O)
1466 
1467 $(OBJS_DIR)/%.o:                $(UTSBASE)/common/io/vioif/%.c
1468         $(COMPILE.c) -o $@ $<
1469         $(CTFCONVERT_O)
1470 #
1471 # krtld must refer to its own bzero/bcopy until the kernel is fully linked
1472 #
1473 $(OBJS_DIR)/bootrd.o            := CPPFLAGS += -DKOBJ_OVERRIDES
1474 $(OBJS_DIR)/doreloc.o           := CPPFLAGS += -DKOBJ_OVERRIDES


2746 $(LINTS_DIR)/zlib_obj.ln:       $(ZLIB_OBJS:%.o=$(LINTS_DIR)/%.ln) \
2747                                 $(UTSBASE)/common/zmod/zlib_lint.c
2748         @($(LHEAD) $(LINT.c) -C $(LINTS_DIR)/zlib_obj \
2749             $(UTSBASE)/common/zmod/zlib_lint.c $(LTAIL))
2750 
2751 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/hxge/%.c
2752         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2753 
2754 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/tpm/%.c
2755         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2756 
2757 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/tpm/%.s
2758         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2759 
2760 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/vr/%.c
2761         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2762 
2763 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/yge/%.c
2764         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2765 
2766 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/sfxge/%.c
2767         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2768 
2769 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/sfxge/common/%.c
2770         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2771 
2772 $(LINTS_DIR)/%.h.ln:            $(UTSBASE)/common/io/sfxge/%.h
2773         @$(CP) $< $(@:%.ln=%.c)
2774         @($(LHEAD) $(LINT.c) $(@:%.ln=%.c) $(LTAIL))
2775         @$(RM) $(@:%.ln=%.c)
2776 
2777 $(LINTS_DIR)/%.ln:              $(UTSBASE)/common/io/skd/%.c
2778         @($(LHEAD) $(LINT.c) $< $(LTAIL))
2779 
2780 $(LINTS_DIR)/%.ln:              $(COMMONBASE)/fsreparse/%.c
2781         @($(LHEAD) $(LINT.c) $< $(LTAIL))