rules.apps
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:

VxWorks

开发平台:

C/C++

  1. # rules.apps
  2. # This file depends on rules.library having been included elsewhere.
  3. # Eventually, one of these files may include the other.
  4. #
  5. # Must do applibsclean first so that we can ensure that only one munch is 
  6. # performed on the file. It follows that when trying to only re-compile 
  7. # some files, you must make all from the top-most level so that all files 
  8. # get placed in the app files.
  9. #
  10. # Building applibsubdirs causes all subdirectories named in APPLIBSUBDIRS to 
  11. # build into the .o and .a by building applibsall.  The resulting .o needs 
  12. # to be munched when done, so we do that here.
  13. # Provided for T1 compatibility.
  14. ifeq ($(MUNCH),)
  15. MUNCH=munch
  16. endif
  17. applibs: applibsclean applibsall applibsubdirs 
  18. $(CP) $(subst /,$(DIRCHAR),$(TGT_DIR)/lib/$(APPLIBDIRNAME)/$(OBJAPPLIBNAME)) $(subst /,$(DIRCHAR),$(TGT_DIR)/lib/$(APPLIBDIRNAME)/temp1.o)
  19. $(NM) $(TGT_DIR)/lib/$(APPLIBDIRNAME)/temp1.o | $(MUNCH) > $(subst /,$(DIRCHAR),$(TGT_DIR)/lib/$(APPLIBDIRNAME)/ctdt.c)
  20. $(CC) -c $(C++FLAGS) -traditional $(TGT_DIR)/lib/$(APPLIBDIRNAME)/ctdt.c -o $(TGT_DIR)/lib/$(APPLIBDIRNAME)/ctdt.o
  21. $(LD) $(LD_PARTIAL_FLAGS) -o $(TGT_DIR)/lib/$(APPLIBDIRNAME)/$(OBJAPPLIBNAME) $(TGT_DIR)/lib/$(APPLIBDIRNAME)/temp1.o $(TGT_DIR)/lib/$(APPLIBDIRNAME)/ctdt.o
  22. @ $(RM) $(subst /,$(DIRCHAR),$(TGT_DIR)/lib/$(APPLIBDIRNAME)/ctdt.c) $(subst /,$(DIRCHAR),$(TGT_DIR)/lib/$(APPLIBDIRNAME)/ctdt.o) $(subst /,$(DIRCHAR),$(TGT_DIR)/lib/$(APPLIBDIRNAME)/temp1.o)
  23. include $(TGT_DIR)/h/make/rules-apps.$(WIND_HOST_TYPE)