31 COMMON_OBJS = ucode_utils.o
32 OBJS = $(PROG_OBJS) $(COMMON_OBJS)
33 COMMON_SRCDIR = ../../common/ucode
34 ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h
35 SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c)
36
37 include ../Makefile.cmd
38
39 POFILE = ucodeadm_all.po
40 POFILES = $(PROG_OBJS:%.o=%.po)
41
42 INTEL_UCODE_FILE = intel-ucode.txt
43 AMD_UCODE_FILE = amd-ucode.bin
44
45 ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
46 ROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
47 ROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
48
49 CPPFLAGS = -I../../common -I../../uts/common
50 CFLAGS += $(CCVERBOSE)
51 CERRWARN += -_gcc=-Wno-uninitialized
52 CERRWARN += -_gcc=-Wno-type-limits
53 LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2
54 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
55 LDLIBS += -lgen
56
57 DIRMODE = 0755
58 FILEMODE = 0555
59
60 $(ROOTINTELUCODE) := FILEMODE = 0444
61 $(ROOTAMDUCODE) := FILEMODE = 0444
62
63 install := TARGET = install
64 clobber := TARGET = clobber
65
66 CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE)
67
68 .KEEP_STATE:
69
70 all: $(PROG)
71
|
31 COMMON_OBJS = ucode_utils.o
32 OBJS = $(PROG_OBJS) $(COMMON_OBJS)
33 COMMON_SRCDIR = ../../common/ucode
34 ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h
35 SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c)
36
37 include ../Makefile.cmd
38
39 POFILE = ucodeadm_all.po
40 POFILES = $(PROG_OBJS:%.o=%.po)
41
42 INTEL_UCODE_FILE = intel-ucode.txt
43 AMD_UCODE_FILE = amd-ucode.bin
44
45 ROOTUCODEPATH = $(ROOT)/platform/i86pc/ucode
46 ROOTINTELUCODE = $(INTEL_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
47 ROOTAMDUCODE = $(AMD_UCODE_FILE:%=$(ROOTUCODEPATH)/%)
48
49 CPPFLAGS = -I../../common -I../../uts/common
50 CFLAGS += $(CCVERBOSE)
51 CERRWARN += $(CNOWARN_UNINIT)
52 CERRWARN += -_gcc=-Wno-type-limits
53 LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2
54 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2
55 LDLIBS += -lgen
56
57 DIRMODE = 0755
58 FILEMODE = 0555
59
60 $(ROOTINTELUCODE) := FILEMODE = 0444
61 $(ROOTAMDUCODE) := FILEMODE = 0444
62
63 install := TARGET = install
64 clobber := TARGET = clobber
65
66 CLEANFILES += $(PROG) $(OBJS) ucode_errno.c $(POFILES) $(POFILE)
67
68 .KEEP_STATE:
69
70 all: $(PROG)
71
|