- ##############################################
- #
- # Makefile for your App
- # Ali sdk auto generated. Don't edit it!
- # ALI corporation.
- #
- ##############################################
- # Environment settings
- GCCROOT = /cygdrive/C/Ali_SDK/compilers/gcc3.0.4/
- export PATH:=/bin:/cygdrive/C/Ali_SDK/bin/:$(PATH)
- # gcc prefix
- Prefix = mips-t2-elf-
- CC = $(GCCROOT)bin/$(Prefix)gcc.exe
- CXX = $(GCCROOT)bin/$(Prefix)g++.exe
- AR = $(GCCROOT)bin/$(Prefix)ar.exe
- LD = $(GCCROOT)bin/$(Prefix)ld.exe
- OBJCOPY = $(GCCROOT)bin/$(Prefix)objcopy.exe
- OBJDUMP = $(GCCROOT)bin/$(Prefix)objdump.exe
- CP = cp
- ECHO = echo
- MAKE = make
- # Parameters
- ccflag = -O1 -mips2 -EL -D_DEBUG_VERSION_ -DALi_M6303_Module_1 -W -I$(RESOURCE_BUILD_PATH) -g -msoft-float -fno-delayed-branch
- ldflag = -O1 -EL
- # Repository path which contains the root module,
- # is root for all modules' source files.
- REPOSITORY =
- # release_path is module library's root,
- # It has two subdirectories: include and lib.
- release_path =
- # RESOURCE_BUILD_PATH is resources build path,
- # stores .h files which built from resources.
- RESOURCE_BUILD_PATH = Resource
- # APP_ROOT_PATH is application root path,
- # all app files are under this root.
- APP_ROOT_PATH = /cygdrive/E/ali/sql_for_ali/
- # Custom Predefine:
- # List of source files
- ASMS =
- SRCS =
- $(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
- $(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
- $(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
- $(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
- $(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
- $(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
- $(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
- $(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
- SRCPPS =
- OBJS = ${ASMS:.S=.o} ${SRCS:.c=.o} ${SRCPPS:.cpp=.o}
- # Set binary file name
- BINNAME = sql_for_ali
- .PHONY : prelink
- prelink:
- .PHONY : all
- all : prelink labelMakefile.mk
- $(MAKE) -f sql_for_aliMakefile.mk $(OBJS)
- $(LD) $(OBJS) $(ldflag) -o $(BINNAME).exe
- -$(CP) -f $(BINNAME).exe $(BINNAME).out
- $(OBJCOPY) -O binary $(BINNAME).exe $(BINNAME).abs
- $(OBJDUMP) -D $(BINNAME).exe > $(BINNAME).dis
- @echo build complete.
- .PHONY : app_as_lib
- app_as_lib : prelink labelMakefile.mk
- $(MAKE) -f sql_for_aliMakefile.mk $(OBJS)
- $(AR) rcs sql_for_ali.a $(OBJS)
- @echo build complete.
- .PHONY : labelMakefile.mk
- labelMakefile.mk : $(SRCS) #$(ASMS)
- $(CP) -f sql_for_aliMakefile sql_for_aliMakefile.mk
- -$(CC) $(ccflag) -M $(SRCS) $(SRCPPS) $(ASMS) >> $@.tmp
- -modify_dep.exe $@.tmp
- -cat $@.tmp >> sql_for_aliMakefile.mk
- -rm $@.tmp
- .PHONY : check
- check :
- @-splint.exe -strict -gnuextensions -DLINT -D_DEBUG_VERSION_ -DALi_M6303_Module_1 -I$(RESOURCE_BUILD_PATH) $(SRCS)
- @echo check complete.
- .PHONY : clean
- clean :
- @-rm -f $(OBJS)
- @-rm -f sql_for_aliMakefile.mk
- @-rm -f $(BINNAME).exe
- @-rm -f $(BINNAME).abs
- @-rm -f $(BINNAME).dis
- @echo clean complete.
- .PHONY : dependency
- dependency : prelink labelMakefile.mk
- @echo make dependency complete.
- .PHONY : custombat
- custombat :
- /cygdrive/C/Ali_SDK/bin/flashwr_sf.bat product_av29c.abs
- @echo custom bat cmds complete.
- %.o : %.c
- $(CC) $(ccflag) -c $< -g -o $@
- %.o : %.S
- $(CC) $(ccflag) -c $< -g -o $@
- %.o : %.cpp
- $(CXX) $(ccflag) -c $< -g -o $@
- # Make File End