Makefile revision 6983
aead985e48027c9df1ef553b17df29dd378757aaJulian Kornberger# CDDL HEADER START
87107747f8a51d0f07c2e2a415fcf9c494783f0fhenning mueller# The contents of this file are subject to the terms of the
9c9b4f0d0199c3b1dbff564b87435b6693b7e692Julian Kornberger# Common Development and Distribution License, Version 1.0 only
b2dbef8c73faa240d208f3ff9fb49b21d9a894a5Daniel Vale# (the "License"). You may not use this file except in compliance
dda6f544eb58d850394073e34ae6127498869a77Christian Clausen# with the License.
0075dcb5aeeee4864fe9f64db82c8a8202bbe6d6henning mueller# You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
cbb18f95cb8354f0c3fb44ba5134dadc7ad6b2ecJulian Kornberger# or http://forgerock.org/license/CDDLv1.0.html.
3cd45197413df1ff1401697720f1ac9ccef8f8eehenning mueller# See the License for the specific language governing permissions
1b6021653a43264993b21ebb20e0119aa2fd6741henning mueller# and limitations under the License.
acb3db0ee20cd276e305da358a03b30666976db0Daniel Couto Vale# When distributing Covered Code, include this CDDL HEADER in each
22e260fcd85642794d99c2ffaa333f2ef6ed7828Daniel Couto Vale# file and include the License file at legal-notices/CDDLv1_0.txt.
ecf32c9d659a1f42c730d61eaa93583c095a4fddhenning mueller# If applicable, add the following below this CDDL HEADER, with the
a14e1ccbd2588441fb5a59e0c82f895b5c42c298Julian Kornberger# fields enclosed by brackets "[]" replaced with your own identifying
0772cf7b22adf46dbab68e829d6a2cd8e8d1bc2ahenning mueller# Portions Copyright [yyyy] [name of copyright owner]
b9f99a06294e593ce8fb34b015e83003229db058Julian Kornberger# CDDL HEADER END
7ea9649883e1bbe8f2582db1a3c66af8b7206056henning mueller# Copyright 2008 Sun Microsystems, Inc.
a5015ca9daa067f062e9e373c3dfafd5631560d9Julian Kornberger# Portions Copyright 2011 ForgeRock AS
631f43db46ad7d375010c3169c81764eb27270a3Julian Kornberger# This is the Makefile than can be used to generate the executables
631f43db46ad7d375010c3169c81764eb27270a3Julian Kornberger# winlauncher.exe and opendj_service.exe that are used by OpenDS in
ffddc54fc6bb11130abd3281dcd95159c7f3ce7fJulian Kornberger# The compilation of winlauncher.exe is straightforward but in the case of
a14e1ccbd2588441fb5a59e0c82f895b5c42c298Julian Kornberger# opendj_service.exe uses a Message File called EventLogMsg.mc which
ffddc54fc6bb11130abd3281dcd95159c7f3ce7fJulian Kornberger# makes the compilation a little bit more complex.
ffddc54fc6bb11130abd3281dcd95159c7f3ce7fJulian Kornberger# During compilation the first step is to generate EventLogMsg.h and
ae2ba7aeef036808e81fb6449e98ce9abb0fb234Daniel Couto Vale# EventLogMsg.res using the rc.exe and mc.exe utilities.
ae2ba7aeef036808e81fb6449e98ce9abb0fb234Daniel Couto Vale# EventLogMsg.h contains some references to the message IDs that are sent to
43a0f914166a28a9d7f75ab10673dce129cb38a9Julian Kornberger# the Windows Event Log and is required in order service.c to be compiled.
43a0f914166a28a9d7f75ab10673dce129cb38a9Julian Kornberger# Once the EvenLogMsg.h file is generated we can compile the service.c and
43a0f914166a28a9d7f75ab10673dce129cb38a9Julian Kornberger# common.c and finally we link the service.obj, common.obj and
43a0f914166a28a9d7f75ab10673dce129cb38a9Julian Kornberger# EventLogMsg.res files and we generate the opendj_service.exe executable.
acb3db0ee20cd276e305da358a03b30666976db0Daniel Couto ValeLAUNCHER_ADMINISTRATOR_PROGNAME=launcher_administrator.exe
1b6021653a43264993b21ebb20e0119aa2fd6741henning muellerWINLAUNCHER_OBJS = common.obj winlauncher.obj
$(RES_FILE):
$(MT) -manifest "$(LAUNCHER_ADMINISTRATOR_MANIFEST_FILE)" -outputresource:"$(LAUNCHER_ADMINISTRATOR_PROGNAME)";#1
del $(SERVICE_OBJS) $(EVENTLOG_H) $(WINLAUNCHER_OBJS) $(RC_FILE) $(RES_FILE) $(SERVICE_PROGNAME) $(WINLAUNCHER_PROGNAME) $(LAUNCHER_ADMINISTRATOR_PROGNAME) core