(file) Return to program-vms.mak CVS log (file) (dir) Up to [Pegasus] / pegasus / mak

 1 karl  1.4 #//%2006////////////////////////////////////////////////////////////////////////
 2 martin 1.3 #//
 3            #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 4            #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
 5            #// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
 6            #// IBM Corp.; EMC Corporation, The Open Group.
 7            #// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
 8            #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 9            #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10            #// EMC Corporation; VERITAS Software Corporation; The Open Group.
11 karl   1.4 #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12            #// EMC Corporation; Symantec Corporation; The Open Group.
13 martin 1.3 #//
14            #// Permission is hereby granted, free of charge, to any person obtaining a copy
15            #// of this software and associated documentation files (the "Software"), to
16            #// deal in the Software without restriction, including without limitation the
17            #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
18            #// sell copies of the Software, and to permit persons to whom the Software is
19            #// furnished to do so, subject to the following conditions:
20            #// 
21            #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
22            #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
23            #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
24            #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
25            #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
26            #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
27            #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28            #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29            #//
30            #//==============================================================================
31 gs.keenan 1.1 ifdef VMS_HAS_CC
32                CPPVMSOBJECTS = $(SOURCES:.cpp=.obj,)
33                TMPVMSOBJECTS += $(CPPVMSOBJECTS:.c=.obj,)
34               
35                TMP_OBJECTS = $(foreach i,$(SOURCES),$(OBJ_DIR)/$i)
36                CPP_OBJECTS = $(TMP_OBJECTS:.cpp=.obj)
37                OBJECTS = $(CPP_OBJECTS:.c=.obj)
38               else
39                TMPVMSOBJECTS = $(SOURCES:.cpp=.obj,)
40               
41                TMP_OBJECTS = $(foreach i,$(SOURCES),$(OBJ_DIR)/$i)
42                OBJECTS = $(TMP_OBJECTS:.cpp=.obj)
43               endif
44               
45               VMSOBJECTS = $(OBJ_VMSDIRA)]$(TMPVMSOBJECTS)
46               
47               FULL_LIB=$(LIB_DIR)/lib$(LIBRARY)$(LIB_SUFFIX)
48               FULL_VMSLIB=$(LIB_VMSDIRA)]lib$(LIBRARY)$(LIB_SUFFIX)
49               
50               FULL_PROGRAM=$(BIN_DIR)/$(PROGRAM)$(EXE)
51               FULL_VMSPROGRAM=$(BIN_VMSDIRA)]$(PROGRAM)$(EXE)
52 gs.keenan 1.1 
53               EXE_OUTPUT =$(FULL_PROGRAM)
54               EXE_VMSOUTPUT =/exe=$(FULL_VMSPROGRAM)
55               
56               #OPT = $(VMSROOT)[src$(VMSDIRA)]$(PROGRAM)/opt
57               OPT = $(OPT_VMSDIRA)]$(PROGRAM)/opt
58               VMSPROGRAM = YES
59               
60 gs.keenan 1.2 
61 gs.keenan 1.1 $(FULL_PROGRAM): $(OBJ_DIR)/target $(BIN_DIR)/target $(OPT_DIR)/target $(OBJECTS) $(FULL_LIBRARIES) $(ERROR)
62               
63               ifdef OBJECTS_IN_OPTIONFILE
64 gs.keenan 1.2 	@ take $(PLATFORM_VMSDIRA)]vms_create_optfile.com "$(OPT_VMSDIRA)]" "$(VMSROOT)[src$(VMSDIR)]" "$(PROGRAM)" "$(strip $(LIBRARIES))" "$(SHARE_COPY)" "$(VMS_VECTOR)" "$(SOURCES)" "$(OBJ_VMSDIRA)]" 
65 gs.keenan 1.1 	cxxlink$(LFLAGS)$(VMSSHARE)$(EXE_VMSOUTPUT)/reposit=$(CXXREPOSITORY_VMSROOT) $(OPT)
66               else
67 gs.keenan 1.2 	@ take $(PLATFORM_VMSDIRA)]vms_create_optfile.com "$(OPT_VMSDIRA)]" "$(VMSROOT)[src$(VMSDIR)]" "$(PROGRAM)" "$(strip $(LIBRARIES))" "$(SHARE_COPY)" "$(VMS_VECTOR)" "$(OBJ_VMSDIRA)]"
68 gs.keenan 1.1 	cxxlink$(LFLAGS)$(VMSSHARE)$(EXE_VMSOUTPUT)/reposit=$(CXXREPOSITORY_VMSROOT) $(VMSOBJECTS)$(OPT)
69               endif
70               	@ $(TOUCH) $(FULL_VMSPROGRAM)
71               ifdef SHARE_COPY
72               #	$(COPY) $(FULL_VMSPROGRAM) sys$$share:$(PROGRAM)$(EXE)
73               	$(COPY) "$(FULL_VMSPROGRAM)" "$(PEGASUS_SYSSHARE)$(PROGRAM)$(EXE)"
74               endif
75               	@ $(ECHO)
76               
77               include $(ROOT)/mak/objects.mak
78               
79               FILES_TO_CLEAN = $(VMSOBJECTS) $(FULL_VMSPROGRAM);
80               
81               include $(ROOT)/mak/clean.mak
82               
83               -include $(ROOT)/mak/depend.mak
84               
85               include $(ROOT)/mak/build.mak
86               
87               include $(ROOT)/mak/sub.mak
88               
89 gs.keenan 1.1 -include $(OBJ_DIR)/depend.mak
90               
91               include $(ROOT)/mak/misc.mak
92               	

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2