version 1.14.4.2, 2005/10/11 14:58:22
|
version 1.18, 2008/04/09 04:37:43
|
|
|
#//%2005//////////////////////////////////////////////////////////////////////// |
#//%2006//////////////////////////////////////////////////////////////////////// |
#// | #// |
#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
#// EMC Corporation; VERITAS Software Corporation; The Open Group. | #// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; Symantec Corporation; The Open Group. |
#// | #// |
#// Permission is hereby granted, free of charge, to any person obtaining a copy | #// Permission is hereby granted, free of charge, to any person obtaining a copy |
#// of this software and associated documentation files (the "Software"), to | #// of this software and associated documentation files (the "Software"), to |
|
|
FULL_EXP = $(BIN_DIR)/$(LIBRARY)$(EXP) | FULL_EXP = $(BIN_DIR)/$(LIBRARY)$(EXP) |
FULL_ILK = $(BIN_DIR)/$(LIBRARY)$(ILK) | FULL_ILK = $(BIN_DIR)/$(LIBRARY)$(ILK) |
FULL_PDB = $(BIN_DIR)/$(LIBRARY)$(PDB) | FULL_PDB = $(BIN_DIR)/$(LIBRARY)$(PDB) |
|
VERSION_RC = $(ROOT)/mak/version-windows.RC |
|
VERSION_RES = $(ROOT)/mak/version-windows.RES |
| |
## | ## |
## ws2_32.lib is needed to get the WINSOCK routines! | ## ws2_32.lib is needed to get the WINSOCK routines! |
## | ## |
| |
LINKFILE=$(LIB_DIR)/linkfile |
|
|
|
## | ## |
## The next four lines define a variable (called NL) that contains a simple | ## The next four lines define a variable (called NL) that contains a simple |
## newline. The two blank lines are needed (please do not remove). | ## newline. The two blank lines are needed (please do not remove). |
|
|
| |
endef | endef |
| |
$(FULL_LIB): $(BIN_DIR)/target $(LIB_DIR)/target $(OBJ_DIR)/target $(OBJECTS) $(FULL_LIBRARIES) $(ERROR) |
## |
|
## The name of the link file to be used by the Windows link command. This is |
|
## only used when SOURCES1 is defined. |
|
## |
|
LINKFILE=$(LIB_DIR)/linkfile |
|
|
|
$(FULL_LIB): $(BIN_DIR)/target $(LIB_DIR)/target $(OBJ_DIR)/target $(OBJECTS) $(VERSION_RES) $(FULL_LIBRARIES) $(ERROR) |
|
ifdef SOURCES1 |
@ $(ECHO) "Creating $(LINKFILE)" | @ $(ECHO) "Creating $(LINKFILE)" |
@ $(RM) $(LINKFILE) | @ $(RM) $(LINKFILE) |
@ $(foreach i, $(OBJECTS), echo $(i) >> $(LINKFILE) $(NL) ) | @ $(foreach i, $(OBJECTS), echo $(i) >> $(LINKFILE) $(NL) ) |
link -nologo -dll $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) -out:$(FULL_DLL) -implib:$(FULL_LIB) @$(LINKFILE) $(FULL_LIBRARIES) $(SYS_LIBS) $(EXTRA_LIBRARIES) |
link -nologo -dll $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) -out:$(FULL_DLL) -implib:$(FULL_LIB) @$(LINKFILE) $(VERSION_RES) $(FULL_LIBRARIES) $(SYS_LIBS) $(EXTRA_LIBRARIES) |
|
else |
|
link -nologo -dll $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) -out:$(FULL_DLL) -implib:$(FULL_LIB) $(OBJECTS) $(VERSION_RES) $(FULL_LIBRARIES) $(SYS_LIBS) $(EXTRA_LIBRARIES) |
|
endif |
| |
FILES_TO_CLEAN = \ | FILES_TO_CLEAN = \ |
$(OBJECTS) $(FULL_LIB) $(FULL_DLL) $(FULL_EXP) $(FULL_ILK) $(FULL_PDB) $(OBJ_DIR)/vc60$(PDB) $(OBJ_DIR)/vc70$(PDB) depend.mak depend.mak.bak | $(OBJECTS) $(FULL_LIB) $(FULL_DLL) $(FULL_EXP) $(FULL_ILK) $(FULL_PDB) $(OBJ_DIR)/vc60$(PDB) $(OBJ_DIR)/vc70$(PDB) depend.mak depend.mak.bak |
| |
|
$(VERSION_RES): $(VERSION_RC) |
|
@ $(RC) /fo $(VERSION_RES) $(VERSION_RC) |
|
|
clean-lib: $(ERROR) | clean-lib: $(ERROR) |
mu rm $(FULL_LIB) $(FULL_DLL) $(FULL_EXP) | mu rm $(FULL_LIB) $(FULL_DLL) $(FULL_EXP) |