sql_for_aliMakefile
上传用户:sunhongbo
上传日期:2022-01-25
资源大小:3010k
文件大小:5k
源码类别:

数据库系统

开发平台:

C/C++

  1. ##############################################
  2. #
  3. #    Makefile for your App
  4. #        Ali sdk auto generated. Don't edit it!
  5. #                            ALI corporation.
  6. #
  7. ##############################################
  8. # Environment settings
  9. GCCROOT = /cygdrive/C/Ali_SDK/compilers/gcc3.0.4/
  10. export PATH:=/bin:/cygdrive/C/Ali_SDK/bin/:$(PATH)
  11. # gcc prefix
  12. Prefix = mips-t2-elf-
  13. CC = $(GCCROOT)bin/$(Prefix)gcc.exe
  14. CXX = $(GCCROOT)bin/$(Prefix)g++.exe
  15. AR = $(GCCROOT)bin/$(Prefix)ar.exe
  16. LD = $(GCCROOT)bin/$(Prefix)ld.exe
  17. OBJCOPY = $(GCCROOT)bin/$(Prefix)objcopy.exe
  18. OBJDUMP = $(GCCROOT)bin/$(Prefix)objdump.exe
  19. CP = cp
  20. ECHO = echo
  21. MAKE = make
  22. # Parameters
  23. ccflag =  -O1 -mips2 -EL -D_DEBUG_VERSION_ -DALi_M6303_Module_1 -W -I$(RESOURCE_BUILD_PATH) -g -msoft-float -fno-delayed-branch  
  24. ldflag = -O1  -EL 
  25. # Repository path which contains the root module,
  26. # is root for all modules' source files.
  27. REPOSITORY = 
  28. # release_path is module library's root,
  29. # It has two subdirectories: include and lib.
  30. release_path = 
  31. # RESOURCE_BUILD_PATH is resources build path,
  32. # stores .h files which built from resources.
  33. RESOURCE_BUILD_PATH = Resource
  34. # APP_ROOT_PATH is application root path,
  35. # all app files are under this root.
  36. APP_ROOT_PATH = /cygdrive/E/ali/sql_for_ali/
  37. # Custom Predefine:  
  38. # List of source files
  39. ASMS = 
  40. SRCS = 
  41. $(APP_ROOT_PATH)sql/alter.c $(APP_ROOT_PATH)sql/analyze.c $(APP_ROOT_PATH)sql/attach.c $(APP_ROOT_PATH)sql/auth.c $(APP_ROOT_PATH)sql/bitvec.c $(APP_ROOT_PATH)sql/btmutex.c $(APP_ROOT_PATH)sql/btree.c $(APP_ROOT_PATH)sql/build.c 
  42. $(APP_ROOT_PATH)sql/callback.c $(APP_ROOT_PATH)sql/complete.c $(APP_ROOT_PATH)sql/date.c $(APP_ROOT_PATH)sql/delete.c $(APP_ROOT_PATH)sql/expr.c $(APP_ROOT_PATH)sql/fault.c $(APP_ROOT_PATH)sql/fts3.c $(APP_ROOT_PATH)sql/fts3_hash.c 
  43. $(APP_ROOT_PATH)sql/fts3_icu.c $(APP_ROOT_PATH)sql/fts3_porter.c $(APP_ROOT_PATH)sql/fts3_tokenizer.c $(APP_ROOT_PATH)sql/fts3_tokenizer1.c $(APP_ROOT_PATH)sql/func.c $(APP_ROOT_PATH)sql/fyfs.c $(APP_ROOT_PATH)sql/hash.c $(APP_ROOT_PATH)sql/insert.c 
  44. $(APP_ROOT_PATH)sql/journal.c $(APP_ROOT_PATH)sql/legacy.c $(APP_ROOT_PATH)sql/loadext.c $(APP_ROOT_PATH)sql/main.c $(APP_ROOT_PATH)sql/malloc.c $(APP_ROOT_PATH)sql/mem1.c $(APP_ROOT_PATH)sql/mem2.c $(APP_ROOT_PATH)sql/mem3.c 
  45. $(APP_ROOT_PATH)sql/mem4.c $(APP_ROOT_PATH)sql/mem5.c $(APP_ROOT_PATH)sql/mutex.c $(APP_ROOT_PATH)sql/opcodes.c $(APP_ROOT_PATH)sql/os.c $(APP_ROOT_PATH)sql/pager.c $(APP_ROOT_PATH)sql/parse.c $(APP_ROOT_PATH)sql/pragma.c 
  46. $(APP_ROOT_PATH)sql/prepare.c $(APP_ROOT_PATH)sql/printf.c $(APP_ROOT_PATH)sql/random.c $(APP_ROOT_PATH)sql/select.c $(APP_ROOT_PATH)sql/sqlite3_port.c $(APP_ROOT_PATH)sql/table.c $(APP_ROOT_PATH)sql/tokenize.c $(APP_ROOT_PATH)sql/trigger.c 
  47. $(APP_ROOT_PATH)sql/update.c $(APP_ROOT_PATH)sql/utf.c $(APP_ROOT_PATH)sql/util.c $(APP_ROOT_PATH)sql/vacuum.c $(APP_ROOT_PATH)sql/vdbe.c $(APP_ROOT_PATH)sql/vdbeapi.c $(APP_ROOT_PATH)sql/vdbeaux.c $(APP_ROOT_PATH)sql/vdbeblob.c 
  48. $(APP_ROOT_PATH)sql/vdbefifo.c $(APP_ROOT_PATH)sql/vdbemem.c $(APP_ROOT_PATH)sql/vtab.c $(APP_ROOT_PATH)sql/where.c $(APP_ROOT_PATH)sql/mutex_w32.c $(APP_ROOT_PATH)sql/mutex_os2.c $(APP_ROOT_PATH)sql/mutex_unix.c $(APP_ROOT_PATH)sql/mutex_ecos.c 
  49. SRCPPS = 
  50. OBJS = ${ASMS:.S=.o} ${SRCS:.c=.o} ${SRCPPS:.cpp=.o}
  51. # Set binary file name
  52. BINNAME = sql_for_ali
  53. .PHONY : prelink
  54. prelink:
  55. .PHONY : all
  56. all : prelink labelMakefile.mk
  57. $(MAKE) -f sql_for_aliMakefile.mk $(OBJS)
  58. $(LD) $(OBJS) $(ldflag) -o $(BINNAME).exe
  59. -$(CP) -f $(BINNAME).exe $(BINNAME).out
  60. $(OBJCOPY) -O binary $(BINNAME).exe $(BINNAME).abs
  61. $(OBJDUMP) -D $(BINNAME).exe > $(BINNAME).dis
  62. @echo build complete.
  63. .PHONY : app_as_lib
  64. app_as_lib : prelink labelMakefile.mk
  65. $(MAKE) -f sql_for_aliMakefile.mk $(OBJS)
  66. $(AR) rcs sql_for_ali.a $(OBJS)
  67. @echo build complete.
  68. .PHONY : labelMakefile.mk
  69. labelMakefile.mk : $(SRCS) #$(ASMS)
  70. $(CP) -f sql_for_aliMakefile sql_for_aliMakefile.mk
  71. -$(CC) $(ccflag) -M $(SRCS) $(SRCPPS) $(ASMS) >> $@.tmp
  72. -modify_dep.exe $@.tmp
  73. -cat $@.tmp >> sql_for_aliMakefile.mk
  74. -rm $@.tmp
  75. .PHONY : check
  76. check : 
  77. @-splint.exe -strict -gnuextensions -DLINT  -D_DEBUG_VERSION_ -DALi_M6303_Module_1 -I$(RESOURCE_BUILD_PATH) $(SRCS)
  78. @echo check complete.
  79. .PHONY : clean
  80. clean : 
  81. @-rm -f $(OBJS)
  82. @-rm -f sql_for_aliMakefile.mk
  83. @-rm -f $(BINNAME).exe
  84. @-rm -f $(BINNAME).abs
  85. @-rm -f $(BINNAME).dis
  86. @echo clean complete.
  87. .PHONY : dependency
  88. dependency : prelink labelMakefile.mk
  89. @echo make dependency complete.
  90. .PHONY : custombat
  91. custombat :
  92. /cygdrive/C/Ali_SDK/bin/flashwr_sf.bat product_av29c.abs
  93. @echo custom bat cmds complete.
  94. %.o : %.c
  95. $(CC) $(ccflag) -c $< -g -o $@
  96. %.o : %.S
  97. $(CC) $(ccflag) -c $< -g -o $@
  98. %.o : %.cpp
  99. $(CXX) $(ccflag) -c $< -g -o $@
  100. # Make File End