dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / uts / i86pc / isa / Makefile
blobacf62b357514a48951a9cc0bb23a91516369a92d
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # uts/i86pc/isa/Makefile
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # Copyright 2016 Joyent, Inc.
28 # This makefile drives the production of the ISA nexus driver
30 # i86pc implementation architecture dependent
34 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 UTSBASE = ../..
39 # Define the module and object file sets.
41 MODULE = isa
42 OBJECTS = $(ISANEXUS_OBJS:%=$(OBJS_DIR)/%)
43 ROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
44 INC_PATH += -I$(UTSBASE)/i86pc/sys/acpi
47 # Include common rules.
49 include $(UTSBASE)/i86pc/Makefile.i86pc
52 # Define targets
54 ALL_TARGET = $(BINARY)
55 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
58 # Dependency
59 LDFLAGS += -dy -Nmisc/acpica -Nmisc/busra -Nmisc/pci_autoconfig
62 # Define our version of dma_engine and i8237A interfaces
64 $(OBJECTS) := CPPFLAGS += -Di_dmae_init=$(MODULE)_i_dmae_init
65 $(OBJECTS) := CPPFLAGS += -Di_dmae_acquire=$(MODULE)_i_dmae_acquire
66 $(OBJECTS) := CPPFLAGS += -Di_dmae_free=$(MODULE)_i_dmae_free
67 $(OBJECTS) := CPPFLAGS += -Di_dmae_get_best_mode=$(MODULE)_i_dmae_get_best_mode
68 $(OBJECTS) := CPPFLAGS += -D_dmae_nxcookie=$(MODULE)__dmae_nxcookie
69 $(OBJECTS) := CPPFLAGS += -Di_dmae_prog=$(MODULE)_i_dmae_prog
70 $(OBJECTS) := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup
71 $(OBJECTS) := CPPFLAGS += -Di_dmae_swsetup=$(MODULE)_i_dmae_swsetup
72 $(OBJECTS) := CPPFLAGS += -Di_dmae_swstart=$(MODULE)_i_dmae_swstart
73 $(OBJECTS) := CPPFLAGS += -Di_dmae_stop=$(MODULE)_i_dmae_stop
74 $(OBJECTS) := CPPFLAGS += -Di_dmae_enable=$(MODULE)_i_dmae_enable
75 $(OBJECTS) := CPPFLAGS += -Di_dmae_disable=$(MODULE)_i_dmae_disable
76 $(OBJECTS) := CPPFLAGS += -Di_dmae_get_chan_stat=$(MODULE)_i_dmae_get_chan_stat
77 $(OBJECTS) := CPPFLAGS += -Dd37A_init=$(MODULE)_d37A_init
78 $(OBJECTS) := CPPFLAGS += -Dd37A_dma_valid=$(MODULE)_d37A_dma_valid
79 $(OBJECTS) := CPPFLAGS += -Dd37A_dma_release=$(MODULE)_d37A_dma_release
80 $(OBJECTS) := CPPFLAGS += -Dd37A_dma_disable=$(MODULE)_d37A_dma_disable
81 $(OBJECTS) := CPPFLAGS += -Dd37A_dma_enable=$(MODULE)_d37A_dma_enable
82 $(OBJECTS) := CPPFLAGS += -Dd37A_get_best_mode=$(MODULE)_d37A_get_best_mode
83 $(OBJECTS) := CPPFLAGS += -Dd37A_intr=$(MODULE)_d37A_intr
84 $(OBJECTS) := CPPFLAGS += -DdEISA_setchain=$(MODULE)_dEISA_setchain
85 $(OBJECTS) := CPPFLAGS += -Dd37A_prog_chan=$(MODULE)_d37A_prog_chan
86 $(OBJECTS) := CPPFLAGS += -Dd37A_dma_swsetup=$(MODULE)_d37A_dma_swsetup
87 $(OBJECTS) := CPPFLAGS += -Dd37A_dma_swstart=$(MODULE)_d37A_dma_swstart
88 $(OBJECTS) := CPPFLAGS += -Dd37A_dma_stop=$(MODULE)_d37A_dma_stop
89 $(OBJECTS) := CPPFLAGS += -Dd37A_get_chan_stat=$(MODULE)_d37A_get_chan_stat
90 $(OBJECTS) := CPPFLAGS += -Dd37A_set_mode=$(MODULE)_d37A_set_mode
91 $(OBJECTS) := CPPFLAGS += -Dd37A_write_addr=$(MODULE)_d37A_write_addr
92 $(OBJECTS) := CPPFLAGS += -Dd37A_read_addr=$(MODULE)_d37A_read_addr
93 $(OBJECTS) := CPPFLAGS += -Dd37A_write_count=$(MODULE)_d37A_write_count
94 $(OBJECTS) := CPPFLAGS += -Dd37A_read_count=$(MODULE)_d37A_read_count
97 # For now, disable these compiler warnings; maintainers should endeavor to
98 # investigate and remove these for maximum coverage. Please do not carry
99 # these forward to new Makefiles.
102 CERRWARN += -Wno-unused-variable
103 $(OBJS_DIR)/isa.o := CERRWARN += -Wno-unused-function
106 # Default build targets.
108 .KEEP_STATE:
110 def: $(DEF_DEPS)
112 all: $(ALL_DEPS)
114 clean: $(CLEAN_DEPS)
116 clobber: $(CLOBBER_DEPS)
118 install: $(INSTALL_DEPS)
121 # Include common targets.
123 include $(UTSBASE)/i86pc/Makefile.targ