Makefile (7c478bd95313f5f23a4c958a745db2134aa03244) | Makefile (7adeeb5aeae42d3b6a4686f45f1fcd4a78b5a459) |
---|---|
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# --- 6 unchanged lines hidden (view full) --- 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# | 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# --- 6 unchanged lines hidden (view full) --- 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# Copyright 2005 Sun Microsystems, Inc. All rights reserved. | 23# Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
24# Use is subject to license terms. 25# 26#ident "%Z%%M% %I% %E% SMI" 27 28PROG= getconf 29XPG4PROG= getconf 30XPG6PROG= getconf 31X4= objs.xpg4 --- 31 unchanged lines hidden (view full) --- 63# 64# The gcc compiler behaves differently and requires -std=gnu99. 65# 66# For XPG4, we need to link with a local version of values-xpg4.o because 67# the compiler only imports this by default (from /usr/lib/values-xpg4.o) 68# if we use the c89 utility as opposed to cc. 69 70XPG6MODE = $(C99_ENABLE) | 24# Use is subject to license terms. 25# 26#ident "%Z%%M% %I% %E% SMI" 27 28PROG= getconf 29XPG4PROG= getconf 30XPG6PROG= getconf 31X4= objs.xpg4 --- 31 unchanged lines hidden (view full) --- 63# 64# The gcc compiler behaves differently and requires -std=gnu99. 65# 66# For XPG4, we need to link with a local version of values-xpg4.o because 67# the compiler only imports this by default (from /usr/lib/values-xpg4.o) 68# if we use the c89 utility as opposed to cc. 69 70XPG6MODE = $(C99_ENABLE) |
71$(__GNUC)XPG6MODE = $(C99_ENABLE) | |
72$(XPG6) := C99MODE = $(XPG6MODE) 73$(XPG6) := CFLAGS += -D_XOPEN_SOURCE=600 -I$(SRC)/lib/libc/inc 74 75.KEEP_STATE: 76 77all: $(PROG) $(XPG4) $(XPG6) 78 79$(PROG): $(OBJS) --- 46 unchanged lines hidden --- | 71$(XPG6) := C99MODE = $(XPG6MODE) 72$(XPG6) := CFLAGS += -D_XOPEN_SOURCE=600 -I$(SRC)/lib/libc/inc 73 74.KEEP_STATE: 75 76all: $(PROG) $(XPG4) $(XPG6) 77 78$(PROG): $(OBJS) --- 46 unchanged lines hidden --- |