Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ## Target to built
  2. TARGET =libvp6e
  3. ## TOOLS
  4. CC = ecc
  5. LD = ecc
  6. AR = ar
  7. OBJDUMP = objdump
  8. RM = rm -f
  9. ## Directories
  10. TOPDIR =C:\DuckSoft
  11. PRIVATEINCLUDE =${TOPDIR}\private\include
  12. PRIVATEINCLUDE2 =${TOPDIR}\private\include\vp60
  13. CORELIBSINCLUDE =${TOPDIR}\private\corelibs\include
  14. CDXVINCLUDE =${TOPDIR}\private\corelibs\cdxv\include
  15. VP6INCLUDE =${TOPDIR}\private\corelibs\cdxv\vp60\vp60\include
  16. CXGENERIC =${TOPDIR}\private\corelibs\cdxv\vp60\vp60\cx\generic
  17. OBJDIR =${TOPDIR}\ObjectCode\bspvp6e
  18. CURRENTDIR =${TOPDIR}\private\corelibs\cdxv\vp60\vp60
  19. LIBDIR =${TOPDIR}\private\corelibs\lib\mapca
  20. ## Compile Flags
  21. ALLINCLUDES =-I${CXGENERIC} -I${VP6INCLUDE} -I${CDXVINCLUDE} -I${CORELIBSINCLUDE} -I${PRIVATEINCLUDE} -I${PRIVATEINCLUDE2}
  22. VP6DEFINES =-DPREDICT_2D -DVFW_COMP -DCOMPDLL -DPOSTPROCESS -DCPUISLITTLEENDIAN -DNORMALIZED
  23. ETIDEFINES =-DMAPCA
  24. ALLDEFINES =${VP6DEFINES} ${ETIDEFINES}
  25. DEBUG =-O2
  26. CFLAGS =-msvc -align 8 -ms -etswp -mP3OPT_nonlocal_calls_through_register=true \
  27. -mP2OPT_suppress_library_call_conv_warnings=TRUE -maalign_branch_target \
  28. -magen_interroutine_padding
  29. ALLFLAGS = $(CFLAGS) ${ALLDEFINES} ${ALLINCLUDES} ${DEBUG}
  30. ## Files
  31. OBJS = cx\bsp\PackVideo.o \
  32. cx\bsp\PickModes.o \
  33. cx\generic\RawBuffer.o \
  34. cx\bsp\bspTokenize.o \
  35. cx\generic\Transform.o \
  36. cx\bsp\encode.o \
  37. cx\bsp\encodembs.o \
  38. cx\bsp\encodemode.o \
  39. cx\generic\encodemv.o \
  40. cx\bsp\mcomp.o \
  41. cx\generic\misc_common.o \
  42. cx\generic\twopass.o \
  43. cx\bsp\vfwcomp.o \
  44. cx\generic\vfwcomp_if.o \
  45. cx\bsp\bspComp_Globals.o \
  46. cx\bsp\mcompopt.o \
  47. cx\bsp\bsptransform.o \
  48. cx\bsp\CSystemDependant.o
  49. SRCS = $(OBJS:.o=.c)
  50. ARTARGET = ${TARGET}.a
  51. # archive
  52. ARTARGET:${OBJS}
  53. ${AR} -cr ${ARTARGET} ${OBJS}
  54. mv ${ARTARGET} ${LIBDIR}
  55. ${OBJS} : ${SRCS}
  56. $(CC) $(ALLFLAGS) -c $*.c -o $*.o
  57. clean:
  58. ${RM} ${OBJS} ${ARTARGET}