Makefile
上传用户:wstnjxml
上传日期:2014-04-03
资源大小:7248k
文件大小:8k
源码类别:

Windows CE

开发平台:

C/C++

  1. APP=tcpmp CC_M68K = m68k-palmos-gcc CC_ARM = arm-tcpmp-palmos-gcc CC_HOST = gcc CPP_HOST = g++ OUTDIR_M68K=objplugin.m68k/
  2. OUTDIR_ARM=objplugin.arm/
  3. PEAL = $(OUTDIR_ARM)peal-postlink
  4. PFLAG = -s 1000
  5. PEALDIR = common/palmos/peal/
  6. PEALSRC = $(PEALDIR)postlink/image.cc $(PEALDIR)postlink/postlinker.cc $(PEALDIR)postlink/relocation.cc $(PEALDIR)postlink/section.cc 
  7. PEALSRC += $(PEALDIR)postlink/symbol.cc $(PEALDIR)postlink/symboltable.cc $(PEALDIR)postlink/complain.cc
  8. CFLAGS_M68K = -pipe -Wall -O3 -mnoshort CFLAGS_ARM = -pipe -Wall -Wno-multichar -march=armv4 -fshort-enums -O3 -mno-apcs-frame -mtune=xscale -fomit-frame-pointer -fsigned-char  #CFLAGS_ARM += -fno-inline-functions  CFLAGS_ARM += -D ARM -D NDEBUG -Icross-compile/libc-palmos CFLAGS_ARM += -DFASTEST -DNO_ERRNO_H -DTCPMP
  9. CFLAGS_ARM += -DFIXED_POINT
  10. #*************
  11. # palmOne SDK
  12. #*************
  13. CFLAGS_ARM += -I../SDK/palmOne-SDK -DHAVE_PALMONE_SDK
  14. #*************
  15. # Sony SDK
  16. #*************
  17. CFLAGS_ARM += -I../SDK/Sony-SDK/Incs -I../SDK/Sony-SDK/Incs/System -DHAVE_SONY_SDK
  18. SFLAGS_ARM = -march=armv4 -mcpu=iwmmxt
  19. LDFLAGS_ARM = -Wl,--split-by-file=63500 -Wl,--emit-relocs -nostartfiles LDFLAGS_M68K = -L/usr/local/share/palmdev/sdk/lib/m68k-palmos-coff -lPalmOSGlue -lc -lgcc LANG_TXT = lang/lang_en.txt lang/lang_std.txt
  20. SRCFILES_M68K = common/palmos/pilotmain_m68k.c SRCFILES_M68K += $(PEALDIR)m68k/peal.c SRCFILES_ARM = $(PEALDIR)arm/pealstub.c SRCFILES_ARM += common/advanced.c
  21. SRCFILES_ARM += common/audio.c 
  22. SRCFILES_ARM += common/bitstrm.c SRCFILES_ARM += common/buffer.c
  23. SRCFILES_ARM += common/codec.c
  24. SRCFILES_ARM += common/color.c
  25. SRCFILES_ARM += common/context.c
  26. SRCFILES_ARM += common/equalizer.c
  27. SRCFILES_ARM += common/flow.c 
  28. SRCFILES_ARM += common/format.c 
  29. SRCFILES_ARM += common/format_base.c 
  30. SRCFILES_ARM += common/format_subtitle.c
  31. SRCFILES_ARM += common/id3tag.c
  32. SRCFILES_ARM += common/idct.c 
  33. SRCFILES_ARM += common/node.c 
  34. SRCFILES_ARM += common/nulloutput.c
  35. SRCFILES_ARM += common/overlay.c
  36. SRCFILES_ARM += common/parser2.c
  37. SRCFILES_ARM += common/platform.c
  38. SRCFILES_ARM += common/player.c
  39. SRCFILES_ARM += common/playlist.c
  40. SRCFILES_ARM += common/probe.c
  41. SRCFILES_ARM += common/rawaudio.c
  42. SRCFILES_ARM += common/rawimage.c
  43. SRCFILES_ARM += common/str.c 
  44. SRCFILES_ARM += common/streams.c 
  45. SRCFILES_ARM += common/tchar.c 
  46. SRCFILES_ARM += common/timer.c 
  47. SRCFILES_ARM += common/tools.c 
  48. SRCFILES_ARM += common/helper_video.c 
  49. SRCFILES_ARM += common/helper_base.c 
  50. SRCFILES_ARM += common/video.c 
  51. SRCFILES_ARM += common/vlc.c
  52. SRCFILES_ARM += common/waveout.c 
  53. SRCFILES_ARM += common/cpu/arm.s 
  54. SRCFILES_ARM += common/cpu/cpu.c 
  55. SRCFILES_ARM += common/playlist/m3u.c 
  56. SRCFILES_ARM += common/playlist/pls.c 
  57. SRCFILES_ARM += common/playlist/asx.c
  58. SRCFILES_ARM += common/dyncode/dyncode.c 
  59. SRCFILES_ARM += common/dyncode/dyncode_arm.c 
  60. SRCFILES_ARM += common/palmos/association_palmos.c
  61. SRCFILES_ARM += common/palmos/context_palmos.c 
  62. SRCFILES_ARM += common/palmos/node_palmos.c 
  63. SRCFILES_ARM += common/palmos/platform_palmos.c 
  64. SRCFILES_ARM += common/palmos/str_palmos.c 
  65. SRCFILES_ARM += common/palmos/mem_palmos.c 
  66. SRCFILES_ARM += common/palmos/dia.c 
  67. SRCFILES_ARM += common/palmos/pace.c 
  68. SRCFILES_ARM += common/palmos/native.s
  69. SRCFILES_ARM += common/palmos/waveout_palmos.c
  70. SRCFILES_ARM += common/palmos/file_palmos.c 
  71. SRCFILES_ARM += common/palmos/filedb_palmos.c 
  72. SRCFILES_ARM += common/palmos/vfs_palmos.c 
  73. SRCFILES_ARM += common/libc/rand.c 
  74. SRCFILES_ARM += common/libc/vsprintf.c 
  75. SRCFILES_ARM += common/libc/qsort.c 
  76. SRCFILES_ARM += common/libc/sincos.c 
  77. SRCFILES_ARM += common/overlay/overlay_hires.c
  78. SRCFILES_ARM += common/pcm/pcm_arm.c
  79. SRCFILES_ARM += common/pcm/pcm_soft.c
  80. SRCFILES_ARM += common/blit/blit_arm_fix.c 
  81. SRCFILES_ARM += common/blit/blit_arm_rgb16.c 
  82. SRCFILES_ARM += common/blit/blit_arm_yuv.c
  83. SRCFILES_ARM += common/blit/blit_arm_packed_yuv.c
  84. SRCFILES_ARM += common/blit/blit_arm_gray.c 
  85. SRCFILES_ARM += common/blit/blit_arm_half.c 
  86. SRCFILES_ARM += common/blit/blit_arm_stretch.c
  87. SRCFILES_ARM += common/blit/blit_soft.c 
  88. SRCFILES_ARM += common/blit/blit_wmmx_fix.c 
  89. SRCFILES_ARM += common/softidct/block_c.c 
  90. SRCFILES_ARM += common/softidct/block_half.c 
  91. SRCFILES_ARM += common/softidct/block_mx1.c 
  92. SRCFILES_ARM += common/softidct/block_wmmx.c 
  93. SRCFILES_ARM += common/softidct/idct_c.c 
  94. SRCFILES_ARM += common/softidct/idct_half.c 
  95. SRCFILES_ARM += common/softidct/idct_arm.s 
  96. SRCFILES_ARM += common/softidct/idct_wmmx.s 
  97. SRCFILES_ARM += common/softidct/mcomp4x4_c.c
  98. SRCFILES_ARM += common/softidct/mcomp_c.c 
  99. SRCFILES_ARM += common/softidct/mcomp_arm.s 
  100. SRCFILES_ARM += common/softidct/mcomp_wmmx.s 
  101. SRCFILES_ARM += common/softidct/softidct.c
  102. SRCFILES_ARM += common/zlib/adler32.c
  103. SRCFILES_ARM += common/zlib/crc32.c 
  104. SRCFILES_ARM += common/zlib/inffast.c 
  105. SRCFILES_ARM += common/zlib/inflate.c
  106. SRCFILES_ARM += common/zlib/inftrees.c 
  107. SRCFILES_ARM += common/zlib/uncompr.c 
  108. SRCFILES_ARM += common/zlib/zutil.c
  109. SRCFILES_ARM += camera/adpcm.c 
  110. SRCFILES_ARM += camera/law.c 
  111. SRCFILES_ARM += camera/g726/g726_16.c
  112. SRCFILES_ARM += camera/g726/g726_24.c
  113. SRCFILES_ARM += camera/g726/g726_32.c
  114. SRCFILES_ARM += camera/g726/g726_40.c
  115. SRCFILES_ARM += camera/g726/g72x.c
  116. SRCFILES_ARM += splitter/avi.c 
  117. SRCFILES_ARM += splitter/asf.c 
  118. SRCFILES_ARM += splitter/wav.c
  119. SRCFILES_ARM += splitter/mov.c
  120. SRCFILES_ARM += splitter/mpg.c
  121. SRCFILES_ARM += splitter/nsv.c
  122. #SRCFILES_ARM += interface/about.c
  123. #SRCFILES_ARM += interface/benchresult.c
  124. #SRCFILES_ARM += interface/mediainfo.c
  125. #SRCFILES_ARM += interface/settings.c
  126. #SRCFILES_ARM += interface/palmos/win_palmos.c 
  127. SRCFILES_ARM += interface/palmos/keys.c 
  128. SRCFILES_ARM += interface/skin.c
  129. SRCFILES_ARM += sample/events.c
  130. SRCFILES_ARM += sample/sample_palmos.c
  131. RESFILES = sample/sample.rcp
  132. OBJS_M68K=$(SRCFILES_M68K:%.c=$(OUTDIR_M68K)%.o) OBJS_ARM_=$(SRCFILES_ARM:%.c=$(OUTDIR_ARM)%.o) OBJS_ARM=$(OBJS_ARM_:%.s=$(OUTDIR_ARM)%.o)
  133. RESOURCES=$(RESFILES:%.rcp=$(OUTDIR_ARM)%.ro) LANG_BIN=$(LANG_TXT:%.txt=%.bin)
  134. all: $(APP).prc $(OUTDIR_ARM)$(APP).lib $(OUTDIR_M68K)$(APP): $(OBJS_M68K) @echo linking m68k @$(CC_M68K) $(CFLAGS_M68K) -static $(OBJS_M68K) $(LDFLAGS_M68K) -o $@ $(APP).prc: $(OUTDIR_M68K)$(APP) $(OUTDIR_ARM)$(APP).ro $(APP).def $(LANG_BIN) $(RESOURCES) @build-prc $(APP).def -o $@ $(OUTDIR_ARM)$(APP).ro $(OUTDIR_M68K)$(APP) $(RESOURCES) $(OUTDIR_ARM)$(APP).bin: $(OBJS_ARM)  @echo linking arm @$(CC_ARM) $(CFLAGS_ARM) -Wl,-Map=${OUTDIR_ARM}/$(APP).map $(LDFLAGS_ARM) $(OBJS_ARM) -o $@  $(OUTDIR_ARM)$(APP).ro: $(OUTDIR_ARM)$(APP).bin $(PEAL) @$(PEAL) $(PFLAG) -o $@ $(OUTDIR_ARM)$(APP).bin $(OUTDIR_ARM)$(APP).lib: $(OUTDIR_ARM)$(APP).bin $(PEAL) @$(PEAL) -l $(APP) -o $@ $(OUTDIR_ARM)$(APP).bin $(OUTDIR_M68K)%.o: %.c  @echo compiling $< @mkdir -p $(OUTDIR_M68K)$(*D)   @$(CC_M68K) $(CFLAGS_M68K) -c $< -o $@
  135. $(OUTDIR_ARM)%.o: %.c  @echo compiling $< @mkdir -p $(OUTDIR_ARM)$(*D)   @$(CC_ARM) $(CFLAGS_ARM) -c $< -o $@
  136. $(OUTDIR_ARM)%.o: %.s
  137. @echo compiling $<
  138. @mkdir -p $(OUTDIR_ARM)$(*D)  
  139. @$(CC_ARM) $(SFLAGS_ARM) -c $< -o $@
  140. $(OUTDIR_ARM)%.ro: %.rcp
  141. @echo compiling $<
  142. @mkdir -p $(OUTDIR_ARM)$(*D)  
  143. @pilrc -I $(*D) -q -ro $< $@
  144. $(PEAL): $(PEALSRC) @echo compiling peal-postlink @$(CPP_HOST) $(PEALSRC) -o $(PEAL)
  145. @chmod u+x $(PEAL)
  146. $(OUTDIR_ARM)langtobin: lang/langtobin.c
  147. @echo compiling langtobin
  148. @$(CC_HOST) lang/langtobin.c -o $(OUTDIR_ARM)langtobin
  149. @chmod u+x $(OUTDIR_ARM)langtobin
  150. %.bin: %.txt $(OUTDIR_ARM)langtobin
  151. @echo convert $< @$(OUTDIR_ARM)langtobin $< $@
  152. clean: @rm -rf $(OUTDIR_M68K) $(OUTDIR_ARM) @rm -f $(APP).prc @rm -f lang/*.bin