Return to program-windows.mak CVS log | Up to [Pegasus] / pegasus / mak |
1 martin 1.12 #//%LICENSE//////////////////////////////////////////////////////////////// | ||
2 martin 1.8 #// | ||
3 martin 1.12 #// 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 #// 10 #// 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 #// 17 #// The above copyright notice and this permission notice shall be included 18 #// in all copies or substantial portions of the Software. 19 #// 20 #// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 21 #// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22 #// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 23 #// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 24 martin 1.12 #// 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 #// 28 #////////////////////////////////////////////////////////////////////////// | ||
29 mike 1.2 INCLUDES = -I$(ROOT)/src $(EXTRA_INCLUDES) 30 31 TMP_OBJECTS = $(foreach i,$(SOURCES),$(OBJ_DIR)/$i) 32 | ||
33 kumpf 1.10 S_OBJECTS = $(TMP_OBJECTS:.s=.obj) 34 CPP_OBJECTS = $(S_OBJECTS:.cpp=.obj) 35 OBJECTS = $(CPP_OBJECTS:.c=.obj) | ||
36 kavita.gupta 1.11 VERSION_RC = $(ROOT)/mak/version-windows.RC 37 VERSION_RES = $(ROOT)/mak/version-windows.RES | ||
38 mike 1.2 39 FULL_PROGRAM=$(BIN_DIR)/$(PROGRAM)$(EXE) | ||
40 tony 1.4 FULL_PROGPDB=$(BIN_DIR)/$(PROGRAM)$(PDB) 41 FULL_PROGILK=$(BIN_DIR)/$(PROGRAM)$(ILK) 42 FULL_PROGLIB=$(BIN_DIR)/$(PROGRAM)$(LIB_SUFFIX) 43 FULL_PROGEXP=$(BIN_DIR)/$(PROGRAM)$(EXP) | ||
44 mike 1.2 45 EXE_OUTPUT = $(EXE_OUT)$(FULL_PROGRAM) 46 | ||
47 kavita.gupta 1.11 $(FULL_PROGRAM): $(OBJ_DIR)/target $(BIN_DIR)/target $(OBJECTS) $(VERSION_RES) $(FULL_LIBRARIES) $(ERROR) | ||
48 mike 1.2 ifeq ($(PEGASUS_SUPPORTS_DYNLIB),yes) 49 50 ## 51 ## build images with -l<name> syntax for needed shared libraries 52 ## DYNAMIC_LIBRARIES is defined appropriately in libraries.mak and Makefile 53 ## files 54 ## 55 | ||
56 kavita.gupta 1.11 $(LINK_WRAPPER) $(CXX) $(FLAGS) $(EXTRA_LINK_FLAGS) -L$(LIB_DIR) $(EXE_OUTPUT) $(OBJECTS) $(VERSION_RES) $(DYNAMIC_LIBRARIES) $(SYS_LIBS) $(EXTRA_LIBRARIES) | ||
57 mike 1.2 else | ||
58 kavita.gupta 1.11 $(LINK_WRAPPER) $(CXX) $(FLAGS) $(EXTRA_LINK_FLAGS) $(EXE_OUTPUT) $(OBJECTS) $(VERSION_RES) $(FULL_LIBRARIES) $(SYS_LIBS) $(EXTRA_LIBRARIES) | ||
59 mike 1.2 endif 60 $(TOUCH) $(FULL_PROGRAM) 61 @ $(ECHO) 62 | ||
63 kavita.gupta 1.11 $(VERSION_RES): $(VERSION_RC) 64 @ $(RC) /fo $(VERSION_RES) $(VERSION_RC) 65 | ||
66 mike 1.2 include $(ROOT)/mak/objects.mak 67 | ||
68 tony 1.5 FILES_TO_CLEAN = $(OBJECTS) $(FULL_PROGRAM) $(FULL_PROGPDB) $(FULL_PROGILK) $(FULL_PROGLIB) $(FULL_PROGEXP) $(OBJ_DIR)/vc60$(PDB) $(OBJ_DIR)/vc70$(PDB) | ||
69 mike 1.2 70 include $(ROOT)/mak/clean.mak 71 72 -include $(ROOT)/mak/depend.mak 73 74 include $(ROOT)/mak/build.mak 75 76 include $(ROOT)/mak/sub.mak 77 78 -include $(OBJ_DIR)/depend.mak 79 80 include $(ROOT)/mak/misc.mak |
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |