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

Windows CE

开发平台:

C/C++

  1. APP=tcpmp CC_M68K = m68k-palmos-gcc CC_ARM = arm-palmos-gcc CC_HOST = gcc CPP_HOST = g++ OUTDIR_M68K=obj.m68k/
  2. OUTDIR_ARM=obj.arm/
  3. PEAL = $(OUTDIR_ARM)peal-postlink
  4. PEALDIR = common/palmos/peal/
  5. PEALFLAGS = -s 1000  #PEALFLAGS += -v
  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 += -fPIC -msingle-pic-base  CFLAGS_ARM += -D ARM -D NDEBUG -DSTDC_HEADERS -DNO_PLUGINS CFLAGS_ARM += -DFASTEST -DNO_ERRNO_H 
  9. CFLAGS_ARM += -DFIXED_POINT
  10. CFLAGS_ARM += -DFPM_ARM -DOPT_SPEED -DASO_INTERLEAVE1 
  11. CFLAGS_ARM += -D BIG_ENDIAN=0 -D BYTE_ORDER=1 -D LITTLE_ENDIAN=1 -D _LOW_ACCURACY_ 
  12. CFLAGS_ARM += -DLC_ONLY_DECODER
  13. CFLAGS_ARM += -DLIBA52_FIXED
  14. CFLAGS_ARM += -DMPC_FIXED_POINT -DMPC_LITTLE_ENDIAN -Impc/libmusepack/include -Icross-compile/libc-palmos
  15. CFLAGS_ARM += -D CONFIG_H264_DECODER -D TCPMP -Iffmpeg/libavutil
  16. #*************
  17. # palmOne SDK
  18. #*************
  19. CFLAGS_ARM += -I../SDK/palmOne-SDK -DHAVE_PALMONE_SDK
  20. #*************
  21. # Sony SDK
  22. #*************
  23. CFLAGS_ARM += -I../SDK/Sony-SDK/Incs -I../SDK/Sony-SDK/Incs/System -DHAVE_SONY_SDK
  24. SFLAGS_ARM = -march=armv4
  25. LDFLAGS_ARM = -Wl,--split-by-file=63000 -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
  26. SRCFILES_M68K = common/palmos/pilotmain_m68k.c SRCFILES_M68K += $(PEALDIR)m68k/peal.c SRCFILES_ARM = $(PEALDIR)arm/pealstub.c SRCFILES_ARM += common/advanced.c
  27. SRCFILES_ARM += common/audio.c 
  28. SRCFILES_ARM += common/bitstrm.c SRCFILES_ARM += common/buffer.c
  29. SRCFILES_ARM += common/codec.c
  30. SRCFILES_ARM += common/color.c
  31. SRCFILES_ARM += common/context.c
  32. SRCFILES_ARM += common/equalizer.c
  33. SRCFILES_ARM += common/flow.c 
  34. SRCFILES_ARM += common/format.c 
  35. SRCFILES_ARM += common/format_base.c 
  36. SRCFILES_ARM += common/format_subtitle.c
  37. SRCFILES_ARM += common/id3tag.c
  38. SRCFILES_ARM += common/idct.c 
  39. SRCFILES_ARM += common/node.c 
  40. SRCFILES_ARM += common/nulloutput.c
  41. SRCFILES_ARM += common/overlay.c
  42. SRCFILES_ARM += common/parser2.c
  43. SRCFILES_ARM += common/platform.c
  44. SRCFILES_ARM += common/player.c
  45. SRCFILES_ARM += common/playlist.c
  46. SRCFILES_ARM += common/probe.c
  47. SRCFILES_ARM += common/rawaudio.c
  48. SRCFILES_ARM += common/rawimage.c
  49. SRCFILES_ARM += common/str.c 
  50. SRCFILES_ARM += common/streams.c 
  51. SRCFILES_ARM += common/tchar.c 
  52. SRCFILES_ARM += common/timer.c 
  53. SRCFILES_ARM += common/tools.c 
  54. SRCFILES_ARM += common/helper_base.c 
  55. SRCFILES_ARM += common/helper_video.c 
  56. SRCFILES_ARM += common/video.c 
  57. SRCFILES_ARM += common/vlc.c
  58. SRCFILES_ARM += common/waveout.c 
  59. SRCFILES_ARM += common/cpu/arm.s 
  60. SRCFILES_ARM += common/cpu/cpu.c 
  61. SRCFILES_ARM += common/playlist/m3u.c 
  62. SRCFILES_ARM += common/playlist/pls.c 
  63. SRCFILES_ARM += common/playlist/asx.c
  64. SRCFILES_ARM += common/dyncode/dyncode.c 
  65. SRCFILES_ARM += common/dyncode/dyncode_arm.c 
  66. SRCFILES_ARM += common/palmos/association_palmos.c
  67. SRCFILES_ARM += common/palmos/context_palmos.c 
  68. SRCFILES_ARM += common/palmos/node_palmos.c 
  69. SRCFILES_ARM += common/palmos/platform_palmos.c 
  70. SRCFILES_ARM += common/palmos/str_palmos.c 
  71. SRCFILES_ARM += common/palmos/mem_palmos.c 
  72. SRCFILES_ARM += common/palmos/dia.c 
  73. SRCFILES_ARM += common/palmos/pace.c 
  74. SRCFILES_ARM += common/palmos/native.s
  75. SRCFILES_ARM += common/palmos/waveout_palmos.c
  76. SRCFILES_ARM += common/palmos/file_palmos.c 
  77. SRCFILES_ARM += common/palmos/filedb_palmos.c 
  78. SRCFILES_ARM += common/palmos/vfs_palmos.c 
  79. SRCFILES_ARM += common/libc/rand.c 
  80. SRCFILES_ARM += common/libc/vsprintf.c 
  81. SRCFILES_ARM += common/libc/qsort.c 
  82. SRCFILES_ARM += common/libc/sincos.c 
  83. SRCFILES_ARM += common/overlay/overlay_hires.c
  84. SRCFILES_ARM += common/pcm/pcm_arm.c
  85. SRCFILES_ARM += common/pcm/pcm_soft.c
  86. SRCFILES_ARM += common/blit/blit_arm_fix.c 
  87. SRCFILES_ARM += common/blit/blit_arm_rgb16.c 
  88. SRCFILES_ARM += common/blit/blit_arm_yuv.c
  89. SRCFILES_ARM += common/blit/blit_arm_packed_yuv.c
  90. SRCFILES_ARM += common/blit/blit_arm_gray.c 
  91. SRCFILES_ARM += common/blit/blit_arm_half.c 
  92. SRCFILES_ARM += common/blit/blit_arm_stretch.c
  93. SRCFILES_ARM += common/blit/blit_soft.c 
  94. SRCFILES_ARM += common/blit/blit_wmmx_fix.c 
  95. SRCFILES_ARM += common/softidct/block_c.c 
  96. SRCFILES_ARM += common/softidct/block_half.c 
  97. SRCFILES_ARM += common/softidct/idct_c.c 
  98. SRCFILES_ARM += common/softidct/idct_half.c 
  99. SRCFILES_ARM += common/softidct/idct_arm.s 
  100. SRCFILES_ARM += common/softidct/block_mx1.c 
  101. SRCFILES_ARM += common/softidct/mcomp4x4_c.c 
  102. SRCFILES_ARM += common/softidct/mcomp_c.c 
  103. SRCFILES_ARM += common/softidct/mcomp_arm.s 
  104. SRCFILES_ARM += common/softidct/softidct.c
  105. SRCFILES_ARM += common/zlib/adler32.c
  106. SRCFILES_ARM += common/zlib/crc32.c 
  107. SRCFILES_ARM += common/zlib/inffast.c 
  108. SRCFILES_ARM += common/zlib/inflate.c
  109. SRCFILES_ARM += common/zlib/inftrees.c 
  110. SRCFILES_ARM += common/zlib/uncompr.c 
  111. SRCFILES_ARM += common/zlib/zutil.c
  112. SRCFILES_ARM += splitter/avi.c 
  113. SRCFILES_ARM += splitter/asf.c 
  114. SRCFILES_ARM += splitter/wav.c
  115. SRCFILES_ARM += splitter/mov.c
  116. SRCFILES_ARM += splitter/mpg.c
  117. SRCFILES_ARM += splitter/nsv.c 
  118. #SRCFILES_ARM += interface/about.c
  119. #SRCFILES_ARM += interface/benchresult.c
  120. #SRCFILES_ARM += interface/mediainfo.c
  121. #SRCFILES_ARM += interface/settings.c
  122. #SRCFILES_ARM += interface/palmos/win_palmos.c 
  123. SRCFILES_ARM += interface/palmos/keys.c 
  124. SRCFILES_ARM += interface/skin.c
  125. SRCFILES_ARM += matroska/matroska.c 
  126. SRCFILES_ARM += matroska/MatroskaParser/MatroskaParser.c 
  127. SRCFILES_ARM += mpeg1/mpeg_decode.c 
  128. SRCFILES_ARM += mpeg1/mves.c
  129. SRCFILES_ARM += camera/mjpeg.c
  130. SRCFILES_ARM += camera/tiff.c
  131. SRCFILES_ARM += camera/png.c
  132. SRCFILES_ARM += camera/adpcm.c
  133. SRCFILES_ARM += camera/law.c
  134. SRCFILES_ARM += camera/g726/g726_16.c
  135. SRCFILES_ARM += camera/g726/g726_24.c
  136. SRCFILES_ARM += camera/g726/g726_32.c
  137. SRCFILES_ARM += camera/g726/g726_40.c
  138. SRCFILES_ARM += camera/g726/g72x.c
  139. SRCFILES_ARM += libmad/libmad.c
  140. SRCFILES_ARM += libmad/libmad/bit.c 
  141. SRCFILES_ARM += libmad/libmad/fixed.c
  142. SRCFILES_ARM += libmad/libmad/frame.c 
  143. SRCFILES_ARM += libmad/libmad/huffmanmad.c 
  144. SRCFILES_ARM += libmad/libmad/layer12.c
  145. SRCFILES_ARM += libmad/libmad/layer3.c 
  146. SRCFILES_ARM += libmad/libmad/stream.c 
  147. SRCFILES_ARM += libmad/libmad/synth.c 
  148. SRCFILES_ARM += vorbislq/ogg.c 
  149. SRCFILES_ARM += vorbislq/oggembedded.c 
  150. SRCFILES_ARM += vorbislq/oggpacket.c 
  151. SRCFILES_ARM += vorbislq/vorbis.c
  152. SRCFILES_ARM += vorbislq/tremor/bitwise.c 
  153. SRCFILES_ARM += vorbislq/tremor/block.c 
  154. SRCFILES_ARM += vorbislq/tremor/codebook.c
  155. SRCFILES_ARM += vorbislq/tremor/floor0.c 
  156. SRCFILES_ARM += vorbislq/tremor/floor1.c 
  157. SRCFILES_ARM += vorbislq/tremor/framing.c
  158. SRCFILES_ARM += vorbislq/tremor/info.c 
  159. SRCFILES_ARM += vorbislq/tremor/mapping0.c 
  160. SRCFILES_ARM += vorbislq/tremor/mdctvorbis.c
  161. SRCFILES_ARM += vorbislq/tremor/registry.c 
  162. SRCFILES_ARM += vorbislq/tremor/res012.c 
  163. SRCFILES_ARM += vorbislq/tremor/sharedbook.c
  164. SRCFILES_ARM += vorbislq/tremor/synthesis.c 
  165. SRCFILES_ARM += vorbislq/tremor/window.c 
  166. SRCFILES_ARM += ffmpeg/ffmpeg.c 
  167. SRCFILES_ARM += ffmpeg/libavcodec/bitstream.c 
  168. SRCFILES_ARM += ffmpeg/libavcodec/cabac.c 
  169. SRCFILES_ARM += ffmpeg/libavcodec/cinepak.c 
  170. SRCFILES_ARM += ffmpeg/libavcodec/dsputil.c 
  171. SRCFILES_ARM += ffmpeg/libavcodec/error_resilience.c 
  172. SRCFILES_ARM += ffmpeg/libavcodec/golomb.c 
  173. SRCFILES_ARM += ffmpeg/libavcodec/h263.c 
  174. SRCFILES_ARM += ffmpeg/libavcodec/h263dec.c 
  175. SRCFILES_ARM += ffmpeg/libavcodec/h264.c 
  176. SRCFILES_ARM += ffmpeg/libavcodec/h264idct.c 
  177. SRCFILES_ARM += ffmpeg/libavcodec/jrevdct.c 
  178. SRCFILES_ARM += ffmpeg/libavcodec/mem.c 
  179. SRCFILES_ARM += ffmpeg/libavcodec/mpeg12.c 
  180. SRCFILES_ARM += ffmpeg/libavcodec/mpegvideo.c 
  181. SRCFILES_ARM += ffmpeg/libavcodec/msmpeg4.c 
  182. SRCFILES_ARM += ffmpeg/libavcodec/msvideo1.c 
  183. SRCFILES_ARM += ffmpeg/libavcodec/parser.c 
  184. SRCFILES_ARM += ffmpeg/libavcodec/simple_idct.c 
  185. SRCFILES_ARM += ffmpeg/libavcodec/tscc.c 
  186. SRCFILES_ARM += ffmpeg/libavcodec/utils.c 
  187. SRCFILES_ARM += ffmpeg/libavcodec/vp3dsp.c 
  188. #SRCFILES_ARM += ffmpeg/libavcodec/armv4l/mpegvideo_arm.c
  189. #SRCFILES_ARM += ffmpeg/libavcodec/armv4l/dsputil_arm.c
  190. #SRCFILES_ARM += ffmpeg/libavcodec/armv4l/dsputil_arm_s.S
  191. #SRCFILES_ARM += ffmpeg/libavcodec/armv4l/simple_idct_arm.S
  192. #SRCFILES_ARM += ffmpeg/libavcodec/armv4l/jrevdct_arm.S
  193. SRCFILES_ARM += ffmpeg/libavutil/integer.c 
  194. SRCFILES_ARM += ffmpeg/libavutil/rational.c 
  195. SRCFILES_ARM += ffmpeg/libavutil/mathematics.c
  196. SRCFILES_ARM += mpc/mpc.c
  197. SRCFILES_ARM += mpc/libmusepack/src/huffsv46.c
  198. SRCFILES_ARM += mpc/libmusepack/src/huffsv7.c
  199. SRCFILES_ARM += mpc/libmusepack/src/idtag.c
  200. SRCFILES_ARM += mpc/libmusepack/src/mpc_decoder.c
  201. SRCFILES_ARM += mpc/libmusepack/src/requant.c
  202. SRCFILES_ARM += mpc/libmusepack/src/streaminfo.c
  203. SRCFILES_ARM += mpc/libmusepack/src/synth_filter.c
  204. SRCFILES_ARM += ac3/ac3.c 
  205. SRCFILES_ARM += ac3/liba52/bit_allocate.c 
  206. SRCFILES_ARM += ac3/liba52/bitstream2.c 
  207. SRCFILES_ARM += ac3/liba52/crc.c 
  208. SRCFILES_ARM += ac3/liba52/downmix.c 
  209. SRCFILES_ARM += ac3/liba52/imdct.c 
  210. SRCFILES_ARM += ac3/liba52/parse.c 
  211. SRCFILES_ARM += aac/faad.c 
  212. SRCFILES_ARM += aac/libpaac/aac_imdct.c
  213. SRCFILES_ARM += aac/faad2/libfaad/bits.c aac/faad2/libfaad/cfft.c
  214. SRCFILES_ARM += aac/faad2/libfaad/common.c aac/faad2/libfaad/decoder.c
  215. SRCFILES_ARM += aac/faad2/libfaad/drc.c aac/faad2/libfaad/drm_dec.c
  216. SRCFILES_ARM += aac/faad2/libfaad/filtbank.c
  217. SRCFILES_ARM += aac/faad2/libfaad/hcr.c aac/faad2/libfaad/huffman.c
  218. SRCFILES_ARM += aac/faad2/libfaad/ic_predict.c aac/faad2/libfaad/is.c
  219. SRCFILES_ARM += aac/faad2/libfaad/lt_predict.c aac/faad2/libfaad/mdct.c
  220. SRCFILES_ARM += aac/faad2/libfaad/ms.c aac/faad2/libfaad/mp4.c
  221. SRCFILES_ARM += aac/faad2/libfaad/output.c aac/faad2/libfaad/pns.c
  222. SRCFILES_ARM += aac/faad2/libfaad/ps_dec.c aac/faad2/libfaad/ps_syntax.c
  223. SRCFILES_ARM += aac/faad2/libfaad/rvlc.c aac/faad2/libfaad/pulse.c
  224. SRCFILES_ARM += aac/faad2/libfaad/sbr_dct.c aac/faad2/libfaad/sbr_dec.c
  225. SRCFILES_ARM += aac/faad2/libfaad/sbr_e_nf.c aac/faad2/libfaad/sbr_fbt.c
  226. SRCFILES_ARM += aac/faad2/libfaad/sbr_hfadj.c aac/faad2/libfaad/sbr_hfgen.c
  227. SRCFILES_ARM += aac/faad2/libfaad/sbr_huff.c aac/faad2/libfaad/sbr_qmf.c
  228. SRCFILES_ARM += aac/faad2/libfaad/sbr_syntax.c aac/faad2/libfaad/sbr_tf_grid.c
  229. SRCFILES_ARM += aac/faad2/libfaad/specrec.c aac/faad2/libfaad/ssr.c
  230. SRCFILES_ARM += aac/faad2/libfaad/ssr_fb.c aac/faad2/libfaad/ssr_ipqf.c
  231. SRCFILES_ARM += aac/faad2/libfaad/syntax.c aac/faad2/libfaad/tns.c
  232. SRCFILES_ARM += sonyhhe/ge2d.c 
  233. SRCFILES_ARM += zodiac/ati4200.c 
  234. SRCFILES_ARM += sample/noplugins.c
  235. SRCFILES_ARM += sample/events.c
  236. SRCFILES_ARM += sample/sample_palmos.c
  237. RESFILES = sample/sample.rcp
  238. OBJS_M68K=$(SRCFILES_M68K:%.c=$(OUTDIR_M68K)%.o) OBJS_ARM1=$(SRCFILES_ARM:%.c=$(OUTDIR_ARM)%.o) OBJS_ARM2=$(OBJS_ARM1:%.s=$(OUTDIR_ARM)%.o)
  239. OBJS_ARM=$(OBJS_ARM2:%.S=$(OUTDIR_ARM)%.o) RESOURCES=$(RESFILES:%.rcp=$(OUTDIR_ARM)%.ro) LANG_BIN=$(LANG_TXT:%.txt=%.bin)
  240. all: $(APP)-all.prc $(OUTDIR_M68K)$(APP): $(OBJS_M68K) @echo linking m68k @$(CC_M68K) $(CFLAGS_M68K) -static $(OBJS_M68K) $(LDFLAGS_M68K) -o $@ $(APP)-all.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) $(PEALFLAGS) -o $@ $(OUTDIR_ARM)$(APP).bin $(OUTDIR_M68K)%.o: %.c  @echo compiling $< @mkdir -p $(OUTDIR_M68K)$(*D)   @$(CC_M68K) $(CFLAGS_M68K) -c $< -o $@
  241. $(OUTDIR_ARM)aac/faad2/%.o: aac/faad2/%.c 
  242. @echo compiling $<
  243. @mkdir -p $(OUTDIR_ARM)aac/faad2/$(*D)  
  244. @$(CC_ARM) $(CFLAGS_ARM) -w -c $< -o $@
  245. $(OUTDIR_ARM)vorbislq/tremor/%.o: vorbislq/tremor/%.c 
  246. @echo compiling $<
  247. @mkdir -p $(OUTDIR_ARM)vorbislq/tremor/$(*D)  
  248. @$(CC_ARM) $(CFLAGS_ARM) -w -c $< -o $@
  249. $(OUTDIR_ARM)matroska/MatroskaParser/%.o: matroska/MatroskaParser/%.c 
  250. @echo compiling $<
  251. @mkdir -p $(OUTDIR_ARM)matroska/MatroskaParser/$(*D)  
  252. @$(CC_ARM) $(CFLAGS_ARM) -Os -c $< -o $@
  253. $(OUTDIR_ARM)mpc/libmusepack/src/%.o: mpc/libmusepack/src/%.c
  254. @echo compiling $<
  255. @mkdir -p $(OUTDIR_ARM)mpc/libmusepack/src/$(*D)  
  256. @$(CC_ARM) $(CFLAGS_ARM) -w -c $< -o $@
  257. $(OUTDIR_ARM)ffmpeg/libavcodec/%.o: ffmpeg/libavcodec/%.c @echo compiling $< @mkdir -p $(OUTDIR_ARM)ffmpeg/libavcodec/$(*D)   @$(CC_ARM) $(CFLAGS_ARM) -w -c $< -o $@ $(OUTDIR_ARM)%.o: %.c  @echo compiling $< @mkdir -p $(OUTDIR_ARM)$(*D)   @$(CC_ARM) $(CFLAGS_ARM) -c $< -o $@
  258. $(OUTDIR_ARM)%.o: %.s
  259. @echo compiling $<
  260. @mkdir -p $(OUTDIR_ARM)$(*D)  
  261. @$(CC_ARM) $(SFLAGS_ARM) -c $< -o $@
  262. $(OUTDIR_ARM)%.o: %.S
  263. @echo compiling $<
  264. @mkdir -p $(OUTDIR_ARM)$(*D)  
  265. @$(CC_ARM) $(SFLAGS_ARM) -c $< -o $@
  266. $(OUTDIR_ARM)%.ro: %.rcp
  267. @echo compiling $<
  268. @mkdir -p $(OUTDIR_ARM)$(*D)  
  269. @pilrc -I $(*D) -q -ro $< $@
  270. $(PEAL): $(PEALSRC) @echo compiling peal-postlink @$(CPP_HOST) $(PEALSRC) -o $(PEAL)
  271. @chmod u+x $(PEAL)
  272. $(OUTDIR_ARM)langtobin: lang/langtobin.c
  273. @echo compiling langtobin
  274. @$(CC_HOST) lang/langtobin.c -o $(OUTDIR_ARM)langtobin
  275. @chmod u+x $(OUTDIR_ARM)langtobin
  276. %.bin: %.txt $(OUTDIR_ARM)langtobin
  277. @echo convert $< @$(OUTDIR_ARM)langtobin $< $@
  278. clean: @rm -rf $(OUTDIR_M68K) $(OUTDIR_ARM) @rm -f $(APP)-all.prc @rm -f lang/*.bin