Makefile (2449e17f82f6097fd2c665b64723e31ceecbeca6) | Makefile (0ba6f73dcd1c9160a44b2872ed0e0d81b51d168f) |
---|---|
1# 2# CDDL HEADER START 3# 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 --- 5 unchanged lines hidden (view full) --- 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# | 1# 2# CDDL HEADER START 3# 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 --- 5 unchanged lines hidden (view full) --- 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# Copyright 2007 Sun Microsystems, Inc. All rights reserved. | 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23# Use is subject to license terms. 24# | 23# Use is subject to license terms. 24# |
25# ident "%Z%%M% %I% %E% SMI" 26# | |
27 28PROG = ucodeadm 29 30PROG_OBJS = ucodeadm.o ucode_errno.o 31COMMON_OBJS = ucode_utils.o 32OBJS = $(PROG_OBJS) $(COMMON_OBJS) 33COMMON_SRCDIR = ../../common/ucode 34ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h 35SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c) 36 37include ../Makefile.cmd 38 39POFILE = ucodeadm_all.po 40POFILES = $(PROG_OBJS:%.o=%.po) 41 42INTEL_UCODE_FILE = intel-ucode.txt | 25 26PROG = ucodeadm 27 28PROG_OBJS = ucodeadm.o ucode_errno.o 29COMMON_OBJS = ucode_utils.o 30OBJS = $(PROG_OBJS) $(COMMON_OBJS) 31COMMON_SRCDIR = ../../common/ucode 32ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h 33SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c) 34 35include ../Makefile.cmd 36 37POFILE = ucodeadm_all.po 38POFILES = $(PROG_OBJS:%.o=%.po) 39 40INTEL_UCODE_FILE = intel-ucode.txt |
43AMD_UCODE_FILE = amd-ucode.txt | 41AMD_UCODE_FILE = amd-ucode.bin |
44 45ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode 46ROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%) | 42 43ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode 44ROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%) |
45ROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%) |
|
47 48CPPFLAGS = -I../../common -I../../uts/common 49CFLAGS += -v 50LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2 51LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2 52LDLIBS = -lgen 53 54DIRMODE = 0755 55FILEMODE = 0555 56OWNER = root 57GROUP = sys 58 59$(ROOTINTELUCODE) := FILEMODE = 0444 | 46 47CPPFLAGS = -I../../common -I../../uts/common 48CFLAGS += -v 49LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2 50LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2 51LDLIBS = -lgen 52 53DIRMODE = 0755 54FILEMODE = 0555 55OWNER = root 56GROUP = sys 57 58$(ROOTINTELUCODE) := FILEMODE = 0444 |
59$(ROOTAMDUCODE) := FILEMODE = 0444 |
|
60 61install := TARGET = install 62clobber := TARGET = clobber 63 64CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE) 65 66.KEEP_STATE: 67 68all: $(PROG) 69 | 60 61install := TARGET = install 62clobber := TARGET = clobber 63 64CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE) 65 66.KEEP_STATE: 67 68all: $(PROG) 69 |
70install: all $(ROOTUSRSBINPROG) $(ROOTUCODEPATH) $(ROOTINTELUCODE) | 70install: all $(ROOTUSRSBINPROG) $(ROOTUCODEPATH) $(ROOTINTELUCODE) $(ROOTAMDUCODE) |
71 72_msg: ucodeadm_all.po 73 74%.o: $(COMMON_SRCDIR)/%.c 75 $(COMPILE.c) -o $@ $< 76 $(POST_PROCESS_O) 77 78$(PROG): $(OBJS) ucode_errno.c --- 27 unchanged lines hidden --- | 71 72_msg: ucodeadm_all.po 73 74%.o: $(COMMON_SRCDIR)/%.c 75 $(COMPILE.c) -o $@ $< 76 $(POST_PROCESS_O) 77 78$(PROG): $(OBJS) ucode_errno.c --- 27 unchanged lines hidden --- |