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

 1 martin 1.19 #//%LICENSE////////////////////////////////////////////////////////////////
 2 martin 1.20 #//
 3 martin 1.19 #// Licensed to The Open Group (TOG) under one or more contributor license
 4             #// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
 5             #// this work for additional information regarding copyright ownership.
 6             #// Each contributor licenses this file to you under the OpenPegasus Open
 7             #// Source License; you may not use this file except in compliance with the
 8             #// License.
 9 martin 1.20 #//
10 martin 1.19 #// Permission is hereby granted, free of charge, to any person obtaining a
11             #// copy of this software and associated documentation files (the "Software"),
12             #// to deal in the Software without restriction, including without limitation
13             #// the rights to use, copy, modify, merge, publish, distribute, sublicense,
14             #// and/or sell copies of the Software, and to permit persons to whom the
15             #// Software is furnished to do so, subject to the following conditions:
16 martin 1.20 #//
17 martin 1.19 #// The above copyright notice and this permission notice shall be included
18             #// in all copies or substantial portions of the Software.
19 martin 1.20 #//
20 martin 1.19 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 martin 1.20 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 martin 1.19 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23             #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24             #// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25             #// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26             #// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 martin 1.20 #//
28 martin 1.19 #//////////////////////////////////////////////////////////////////////////
29 tony   1.9  FULL_LIB = $(LIB_DIR)/$(LIBRARY)$(LIB_SUFFIX)
30             FULL_DLL = $(BIN_DIR)/$(LIBRARY)$(DLL)
31             FULL_EXP = $(BIN_DIR)/$(LIBRARY)$(EXP)
32             FULL_ILK = $(BIN_DIR)/$(LIBRARY)$(ILK)
33             FULL_PDB = $(BIN_DIR)/$(LIBRARY)$(PDB)
34 kavita.gupta 1.18 VERSION_RC = $(ROOT)/mak/version-windows.RC
35                   VERSION_RES = $(ROOT)/mak/version-windows.RES
36 mike         1.1  
37 mike         1.4  ##
38                   ## ws2_32.lib is needed to get the WINSOCK routines!
39                   ##
40                   
41 mike         1.15 ##
42                   ## The next four lines define a variable (called NL) that contains a simple
43                   ## newline. The two blank lines are needed (please do not remove).
44                   ##
45                   define NL
46                   
47                   
48                   endef
49                   
50                   ##
51                   ## The name of the link file to be used by the Windows link command. This is
52                   ## only used when SOURCES1 is defined.
53 kumpf        1.21 ##
54 mike         1.15 LINKFILE=$(LIB_DIR)/linkfile
55                   
56 kavita.gupta 1.18 $(FULL_LIB): $(BIN_DIR)/target $(LIB_DIR)/target $(OBJ_DIR)/target $(OBJECTS) $(VERSION_RES) $(FULL_LIBRARIES) $(ERROR)
57 mike         1.15 ifdef SOURCES1
58                   	@ $(ECHO) "Creating $(LINKFILE)"
59                   	@ $(RM) $(LINKFILE)
60                   	@ $(foreach i, $(OBJECTS), echo $(i) >> $(LINKFILE) $(NL) )
61 kavita.gupta 1.18 	link -nologo -dll $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) -out:$(FULL_DLL) -implib:$(FULL_LIB) @$(LINKFILE) $(VERSION_RES) $(FULL_LIBRARIES) $(SYS_LIBS) $(EXTRA_LIBRARIES)
62 mike         1.15 else
63 kavita.gupta 1.18 	link -nologo -dll $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) -out:$(FULL_DLL) -implib:$(FULL_LIB) $(OBJECTS) $(VERSION_RES) $(FULL_LIBRARIES) $(SYS_LIBS) $(EXTRA_LIBRARIES)
64 mike         1.15 endif
65 mike         1.1  
66                   FILES_TO_CLEAN = \
67 tony         1.10     $(OBJECTS) $(FULL_LIB) $(FULL_DLL) $(FULL_EXP) $(FULL_ILK) $(FULL_PDB) $(OBJ_DIR)/vc60$(PDB) $(OBJ_DIR)/vc70$(PDB) depend.mak depend.mak.bak
68 mike         1.1  
69 kavita.gupta 1.18 $(VERSION_RES): $(VERSION_RC)
70                   	@ $(RC) /fo $(VERSION_RES) $(VERSION_RC)
71                   
72 mike         1.1  clean-lib: $(ERROR)
73                   	mu rm $(FULL_LIB) $(FULL_DLL) $(FULL_EXP)

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2