Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# CDDL HEADER START
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater#
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# The contents of this file are subject to the terms of the
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Common Development and Distribution License, Version 1.0 only
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# (the "License"). You may not use this file except in compliance
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# with the License.
2ec4ab21838e218863d052ebfa3e106e04f50820Evan Hunt#
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# or http://www.opensolaris.org/os/licensing.
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater#
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater#
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater# ident "%Z%%M% %I% %E% SMI"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Makefile definitions for Domain Configuration Server (DCS)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMANIFEST= dcs.xml
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinclude ../../../Makefile.cmd
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssoninclude ../../../../Makefile.psm
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPROG= dcs
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCLASS= 32
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPLATFORM= sun4u
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Set CONCURR_MODE to one of the following:
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# MULTI_THR - multiple threads with _no_ i18n support*
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# MULTI_PROC - multiple processes with i18n support
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# * Currently, there is no per thread locale support in Solaris.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Thus, multiple processes is the only way to fully support i18n.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONCURR_MODE= MULTI_PROC
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterSRCS= dcs.c \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater dcs_ses.c \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater dcs_msg.c \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater rdr_messages.c \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater rsrc_info.c \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater ri_init.c
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsHDRS= dcs.h \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews rdr_messages.h \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews rdr_param_types.h \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington remote_cfg.h \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater rsrc_info.h \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews rsrc_info_impl.h \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater $(USR_PSM_ISYS_DIR)/sbd_ioctl.h
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsOBJS= $(SRCS:%.c=%.o)
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINT_SRCS= $(SRCS)
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic UpdaterLINT_FILES= $(LINT_SRCS:%.c=%.ln)
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsPOFILES= dcs_msg.po
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFILEMODE= 0755
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic UpdaterOWNER= root
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsGROUP= bin
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterROOTMANIFESTDIR= $(ROOTSVCPLATFORMSUN4U)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(ROOTMANIFEST) := FILEMODE= 444
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# FLAGS:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonMULTI_THR_FLAGS= -D_REENTRANT -DDCS_MULTI_THREAD
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterMULTI_PROC_FLAGS= -D__EXTENSIONS__
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterCPPFLAGS= -I$(USR_PSM_INCL_DIR) $(CPPFLAGS.master) \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $($(CONCURR_MODE)_FLAGS)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic UpdaterLINT_FLAGS= -c -Nlevel=4 -Ncheck $($(CONCURR_MODE)_FLAGS)
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic UpdaterXGETFLAGS += -a -s -x $(PROG).xcl
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater#
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# LIBRARIES:
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMULTI_THR_LIBS= -D_REENTRANT
f9119ad8f6114b2255e7545bf5cd187f4db0a89bAutomatic Updater
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic UpdaterMULTI_PROC_LIBS=
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterLDLIBS += $($(CONCURR_MODE)_LIBS) \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater -lsocket \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater -lcfgadm \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater -ldevinfo \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater -lrcm \
b29e5c56eb74a6de1a84c29879afc90ffc6b1436Automatic Updater -lnvpair \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater -lkstat
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.KEEP_STATE:
0977f3f39ef6728516be7976452b9122c8f5607aAutomatic Updater
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsall: $(PROG)
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater$(PROG): $(OBJS) $(HDRS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater $(POST_PROCESS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updaterinstall: all .WAIT $(ROOTLIBPROG) $(ROOTMANIFEST)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updatercheck: $(CHKMANIFEST)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterlint:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(LINT_SRCS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclean:
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews $(RM) $(PROG) $(OBJS) $(LINT_FILES) $(POFILES) $(POFILE) core
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater$(POFILE): $(POFILES)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $(RM) $(POFILE)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater cat $(POFILES) > $(POFILE)
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updaterinclude ../../../Makefile.targ
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updaterinclude ../../../../Makefile.psm.targ
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater