Makefile (122c3632) Makefile (b597708b)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 90 unchanged lines hidden (view full) ---

99#endif
100
101ifeq "$(OS)" "WIN"
102$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES)
103 -$(MKDIR) $(subst /,$(PS),$(@D))
104 -$(MKDIR) $(subst /,$(PS),$(SAMPLE_GEN_OUT))
105 $(LINK) $(COMP_LINK_FLAGS) /OUT:$@ \
106 /MAP:$(SAMPLE_GEN_OUT)/$(subst $(SHAREDLIB_EXT),map,$(@F)) $(SLOFILES) \
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 90 unchanged lines hidden (view full) ---

99#endif
100
101ifeq "$(OS)" "WIN"
102$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES)
103 -$(MKDIR) $(subst /,$(PS),$(@D))
104 -$(MKDIR) $(subst /,$(PS),$(SAMPLE_GEN_OUT))
105 $(LINK) $(COMP_LINK_FLAGS) /OUT:$@ \
106 /MAP:$(SAMPLE_GEN_OUT)/$(subst $(SHAREDLIB_EXT),map,$(@F)) $(SLOFILES) \
107 $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB) msvcrt.lib kernel32.lib
107 $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) msvcrt.lib kernel32.lib
108 $(LINK_MANIFEST)
109else
110#$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES) $(COMP_MAPFILE)
111$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES)
112 -$(MKDIR) $(subst /,$(PS),$(@D)) && $(DEL) $(subst \\,\,$(subst /,$(PS),$@))
113 $(LINK) $(COMP_LINK_FLAGS) $(LINK_LIBS) -o $@ $(SLOFILES) \
108 $(LINK_MANIFEST)
109else
110#$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES) $(COMP_MAPFILE)
111$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES)
112 -$(MKDIR) $(subst /,$(PS),$(@D)) && $(DEL) $(subst \\,\,$(subst /,$(PS),$@))
113 $(LINK) $(COMP_LINK_FLAGS) $(LINK_LIBS) -o $@ $(SLOFILES) \
114 $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB) $(STC++LIB) $(CPPUHELPERDYLIB) $(CPPUDYLIB) $(SALDYLIB)
114 $(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STC++LIB) $(CPPUHELPERDYLIB) $(CPPUDYLIB) $(SALDYLIB)
115ifeq "$(OS)" "MACOSX"
116 $(INSTALL_NAME_URELIBS) $@
117endif
118endif
119
120# rule for component package manifest
121$(SAMPLE_GEN_OUT)/%/manifest.xml :
122 -$(MKDIR) $(subst /,$(PS),$(@D))

--- 48 unchanged lines hidden (view full) ---

171 -$(MKDIR) $(subst /,$(PS),$(@D))
172 $(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(SAMPLE_INC_OUT) $(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
173
174$(OUT_BIN)/_$(APP1_NAME)$(EXE_EXT) : $(SAMPLE_OBJ_OUT)/$(APP1_NAME).$(OBJ_EXT)
175 -$(MKDIR) $(subst /,$(PS),$(@D))
176 -$(MKDIR) $(subst /,$(PS),$(SAMPLE_GEN_OUT))
177ifeq "$(OS)" "WIN"
178 $(LINK) $(EXE_LINK_FLAGS) /OUT:$@ /MAP:$(SAMPLE_GEN_OUT)/$(basename $(@F)).map \
115ifeq "$(OS)" "MACOSX"
116 $(INSTALL_NAME_URELIBS) $@
117endif
118endif
119
120# rule for component package manifest
121$(SAMPLE_GEN_OUT)/%/manifest.xml :
122 -$(MKDIR) $(subst /,$(PS),$(@D))

--- 48 unchanged lines hidden (view full) ---

171 -$(MKDIR) $(subst /,$(PS),$(@D))
172 $(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(SAMPLE_INC_OUT) $(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
173
174$(OUT_BIN)/_$(APP1_NAME)$(EXE_EXT) : $(SAMPLE_OBJ_OUT)/$(APP1_NAME).$(OBJ_EXT)
175 -$(MKDIR) $(subst /,$(PS),$(@D))
176 -$(MKDIR) $(subst /,$(PS),$(SAMPLE_GEN_OUT))
177ifeq "$(OS)" "WIN"
178 $(LINK) $(EXE_LINK_FLAGS) /OUT:$@ /MAP:$(SAMPLE_GEN_OUT)/$(basename $(@F)).map \
179 $< $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB) $(STLPORTLIB)
179 $< $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB)
180else
181 $(LINK) $(EXE_LINK_FLAGS) $(LINK_LIBS) -o $@ $< \
180else
181 $(LINK) $(EXE_LINK_FLAGS) $(LINK_LIBS) -o $@ $< \
182 $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB) $(STLPORTLIB) $(STDC++LIB) $(CPPUHELPERDYLIB) $(CPPUDYLIB) $(SALHELPERDYLIB) $(SALDYLIB)
182 $(CPPUHELPERLIB) $(CPPULIB) $(SALHELPERLIB) $(SALLIB) $(STDC++LIB) $(CPPUHELPERDYLIB) $(CPPUDYLIB) $(SALHELPERDYLIB) $(SALDYLIB)
183ifeq "$(OS)" "MACOSX"
184 $(INSTALL_NAME_URELIBS_BIN) $@
185endif
186endif
187
188$(OUT_BIN)/$(APP1_NAME)$(EXE_EXT) : $(OUT_BIN)/_$(APP1_NAME)$(EXE_EXT)
189 $(COPY) $(subst /,$(PS),$(BIN_DIR)/unoapploader$(EXE_EXT)) $(subst /,$(PS),$@)
190# touch the target to renew the date for correct dependencies.

--- 35 unchanged lines hidden ---
183ifeq "$(OS)" "MACOSX"
184 $(INSTALL_NAME_URELIBS_BIN) $@
185endif
186endif
187
188$(OUT_BIN)/$(APP1_NAME)$(EXE_EXT) : $(OUT_BIN)/_$(APP1_NAME)$(EXE_EXT)
189 $(COPY) $(subst /,$(PS),$(BIN_DIR)/unoapploader$(EXE_EXT)) $(subst /,$(PS),$@)
190# touch the target to renew the date for correct dependencies.

--- 35 unchanged lines hidden ---