Makefile.com (7c478bd95313f5f23a4c958a745db2134aa03244) | Makefile.com (84ab085a13f931bc78e7415e7ce921dbaa14fcb3) |
---|---|
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, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# --- 5 unchanged lines hidden (view full) --- 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 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, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# --- 5 unchanged lines hidden (view full) --- 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# |
22# 23#ident "%Z%%M% %I% %E% SMI" 24# 25# Copyright (c) 1992, 1999 by Sun Microsystems, Inc. 26# All rights reserved. 27# 28# cmd/prtdiag/Makefile.com 29# | |
30 31# | 22 23# |
32# Create default so empty rules don't 33# confuse make | 24# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 25# Use is subject to license terms. |
34# | 26# |
35CLASS = 32 | 27#ident "%Z%%M% %I% %E% SMI" |
36 37include $(SRCDIR)/../Makefile.cmd 38include $(SRCDIR)/../../Makefile.psm 39 40PROG = prtdiag | 28 29include $(SRCDIR)/../Makefile.cmd 30include $(SRCDIR)/../../Makefile.psm 31 32PROG = prtdiag |
33OBJS = main.o 34CLASS = 32 |
|
41 42FILEMODE = 2755 43DIRMODE = 755 44OWNER = root 45GROUP = sys 46 | 35 36FILEMODE = 2755 37DIRMODE = 755 38OWNER = root 39GROUP = sys 40 |
47OBJS= main.o 48 49# allow additional kernel-architecture dependent objects to be specified. 50 51OBJS += $(KARCHOBJS) 52 53SRCS = $(OBJS:%.o=%.c) 54 55LINT_OBJS = $(OBJS:%.o=%.ln) 56 57 | 41LINTFILES = $(OBJS:%.o=%.ln) |
58POFILE = prtdiag_$(PLATFORM).po 59POFILES = $(OBJS:%.o=%.po) 60 | 42POFILE = prtdiag_$(PLATFORM).po 43POFILES = $(OBJS:%.o=%.po) 44 |
45.PARALLEL: $(OBJS) $(LINTFILES) |
|
61 | 46 |
62# These names describe the layout on the target machine | 47%.o: %.c 48 $(COMPILE.c) -o $@ $< 49 $(POST_PROCESS_O) |
63 | 50 |
64IFLAGS = -I$(SRCDIR) -I$(USR_PSM_INCL_DIR) -I./ 65 66CPPFLAGS = $(IFLAGS) $(CPPFLAGS.master) -D_SYSCALL32 67 68.PARALLEL: $(OBJS) 69 70# build rules 71 | |
72%.o: $(SRCDIR)/%.c 73 $(COMPILE.c) -o $@ $< 74 $(POST_PROCESS_O) 75 | 51%.o: $(SRCDIR)/%.c 52 $(COMPILE.c) -o $@ $< 53 $(POST_PROCESS_O) 54 |
55%.po: %.c 56 $(COMPILE.cpp) $< > $<.i 57 $(BUILD.po) 58 |
|
76%.po: $(SRCDIR)/%.c 77 $(COMPILE.cpp) $< > $<.i 78 $(BUILD.po) 79 | 59%.po: $(SRCDIR)/%.c 60 $(COMPILE.cpp) $< > $<.i 61 $(BUILD.po) 62 |
63%.ln: %.c 64 $(LINT.c) -c $< 65 |
|
80%.ln: $(SRCDIR)/%.c | 66%.ln: $(SRCDIR)/%.c |
81 $(LINT) -u -c $(CPPFLAGS) $< | 67 $(LINT.c) -c $< |