Makefile (55908bd733fe029d49237b91c700655997242419) | Makefile (ada023d26fbb04273c643d7c7fade1b24da764fb) |
---|---|
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 --- 9 unchanged lines hidden (view full) --- 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# Copyright 2017 RackTop Systems. | 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 --- 9 unchanged lines hidden (view full) --- 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# Copyright 2017 RackTop Systems. |
26# Copyright 2021 OmniOS Community Edition (OmniOSce) Association. |
|
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 | 27# 28 29PROG = ucodeadm 30 31PROG_OBJS = ucodeadm.o ucode_errno.o 32COMMON_OBJS = ucode_utils.o 33OBJS = $(PROG_OBJS) $(COMMON_OBJS) 34COMMON_SRCDIR = ../../common/ucode 35ERROR_HEADER = $(COMMON_SRCDIR)/ucode_errno.h 36SRCS = $(PROG_OBJS:%.o=%.c) $(COMMON_OBJS:%.o=$(COMMON_SRCDIR)/%.c) 37 38include ../Makefile.cmd |
39include ../Makefile.ctf |
|
38 39POFILE = ucodeadm_all.po 40POFILES = $(PROG_OBJS:%.o=%.po) 41 42CPPFLAGS = -I../../common -I../../uts/common 43CFLAGS += $(CCVERBOSE) 44CERRWARN += $(CNOWARN_UNINIT) 45CERRWARN += -_gcc=-Wno-type-limits | 40 41POFILE = ucodeadm_all.po 42POFILES = $(PROG_OBJS:%.o=%.po) 43 44CPPFLAGS = -I../../common -I../../uts/common 45CFLAGS += $(CCVERBOSE) 46CERRWARN += $(CNOWARN_UNINIT) 47CERRWARN += -_gcc=-Wno-type-limits |
46LINTFLAGS += -errtags -erroff=E_NAME_DEF_NOT_USED2 47LINTFLAGS += -erroff=E_INCONS_ARG_DECL2,E_INCONS_VAL_TYPE_DECL2 | |
48LDLIBS += -lgen 49 50DIRMODE = 0755 51FILEMODE = 0555 52 53install := TARGET = install 54clobber := TARGET = clobber 55 --- 13 unchanged lines hidden (view full) --- 69 70$(PROG): $(OBJS) ucode_errno.c 71 $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) 72 $(POST_PROCESS) 73 74clean: 75 -$(RM) $(CLEANFILES) 76 | 48LDLIBS += -lgen 49 50DIRMODE = 0755 51FILEMODE = 0555 52 53install := TARGET = install 54clobber := TARGET = clobber 55 --- 13 unchanged lines hidden (view full) --- 69 70$(PROG): $(OBJS) ucode_errno.c 71 $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS) 72 $(POST_PROCESS) 73 74clean: 75 -$(RM) $(CLEANFILES) 76 |
77lint: lint_SRCS 78 79 | |
80include ../Makefile.targ 81 82ucode_errno.c: $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER) 83 sh $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER) > $@ 84 85ucode_errno.po := XGETFLAGS += -a 86 87$(POFILE): $(POFILES) 88 $(RM) $@ 89 $(CAT) $(POFILES) > $@ 90 91FRC: | 77include ../Makefile.targ 78 79ucode_errno.c: $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER) 80 sh $(COMMON_SRCDIR)/mkerrno.sh $(ERROR_HEADER) > $@ 81 82ucode_errno.po := XGETFLAGS += -a 83 84$(POFILE): $(POFILES) 85 $(RM) $@ 86 $(CAT) $(POFILES) > $@ 87 88FRC: |