Cross Reference: /illumos-gate/usr/src/cmd/sgs/m4/i386/Makefile
Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
5e01956f3000408c2a2c5a08c8d0acf2c2a9d8eeGlenn Barry# CDDL HEADER START
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# The contents of this file are subject to the terms of the
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# Common Development and Distribution License, Version 1.0 only
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# (the "License"). You may not use this file except in compliance
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# with the License.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# or http://www.opensolaris.org/os/licensing.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# See the License for the specific language governing permissions
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# and limitations under the License.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# When distributing Covered Code, include this CDDL HEADER in each
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# If applicable, add the following below this CDDL HEADER, with the
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# fields enclosed by brackets "[]" replaced with your own identifying
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# information: Portions Copyright [yyyy] [name of copyright owner]
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# CDDL HEADER END
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#ident "%Z%%M% %I% %E% SMI"
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# Copyright (c) 1995 by Sun Microsystems, Inc.
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# All rights reserved.
159d09a20817016f09b3ea28d1bdada4a336bb91Mark Phalan#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb# cmd/sgs/m4/i386/Makefile
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb#
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbPROG= m4
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbXPG4PROG= m4
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbinclude ../../../Makefile.cmd
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbCOBJS= m4.o m4ext.o m4macs.o
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbYOBJS= m4objs/m4y.o
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbXPG4YOBJS= m4objs.xpg4/m4y_xpg4.o
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
159d09a20817016f09b3ea28d1bdada4a336bb91Mark PhalanOBJS= $(COBJS:%=m4objs/%) $(YOBJS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbXPG4OBJS= $(COBJS:%=m4objs.xpg4/%) $(XPG4YOBJS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbALLOBJS= $(OBJS) $(XPG4OBJS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbBLTSRCS= ../common/m4y.c ../common/m4y_xpg4.c
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbSRCS= $(COBJS:%.o=../common/%.c) $(BLTSRCS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbINCLIST= -I../common
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbDEFLIST= -DELF
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbCPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbCLEANFILES += $(LINTOUT) $(BLTSRCS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbm4objs.xpg4/%.o := CPPFLAGS += -DXPG4
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbm4objs/%.o m4objs.xpg4/%.o: ../common/%.c
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb $(COMPILE.c) -o $@ $<
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb.KEEP_STATE:
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtball: $(PROG) $(XPG4)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb$(PROG): $(OBJS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb $(POST_PROCESS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb$(XPG4): $(XPG4OBJS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb $(LINK.c) $(XPG4OBJS) -o $@ $(LDLIBS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb $(POST_PROCESS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb$(OBJS): m4objs
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb$(XPG4OBJS): m4objs.xpg4
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbm4objs m4objs.xpg4:
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb -@mkdir -p $@
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbinstall: all $(ROOTCCSBINPROG) $(ROOTXPG4PROG)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbclean:
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb $(RM) $(ALLOBJS) $(CLEANFILES)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtblint: $(LINTOUT)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb$(LINTOUT): $(SRCS)
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb $(LINT.c) $(SRCS) > $(LINTOUT) 2>&1
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtbinclude ../../../Makefile.targ
ab9b2e153c3a9a2b1141fefa87925b1a9beb1236gtb