Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ## Target to built
  2. TARGET =libvputil
  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. CORELIBSINCLUDE =${TOPDIR}\private\corelibs\include
  13. CDXVINCLUDE =${TOPDIR}\private\corelibs\cdxv\include
  14. VPPPINCLUDE =${TOPDIR}\private\corelibs\cdxv\vputil\include
  15. CURRENTDIR =${TOPDIR}\private\corelibs\cdxv\vputil
  16. LIBDIR =${TOPDIR}\private\corelibs\lib\mapca
  17. ## Compile Flags
  18. ALLINCLUDES =-I${CDXVINCLUDE} -I${CORELIBSINCLUDE} -I${PRIVATEINCLUDE} -I${VPPPINCLUDE}
  19. VP6DEFINES =-DPREDICT_2D -DVFW_COMP -DCOMPDLL -DPOSTPROCESS -DCPUISLITTLEENDIAN -DNORMALIZED
  20. ETIDEFINES =-DMAPCA
  21. ALLDEFINES =${VP6DEFINES} ${ETIDEFINES}
  22. DEBUG =-O2
  23. CFLAGS =-msvc -align 8 -etswp -mP3OPT_nonlocal_calls_through_register=true \
  24. -mP2OPT_suppress_library_call_conv_warnings=TRUE -maalign_branch_target \
  25. -magen_interroutine_padding
  26. ALLFLAGS =$(CFLAGS) ${ALLDEFINES} ${ALLINCLUDES} ${DEBUG}
  27. ## Files
  28. OBJS =generic\fdct.o \
  29. generic\idctpart.o \
  30. generic\reconstruct.o \
  31. generic\vputil.o \
  32. bsp\bspFdct.o \
  33. bsp\bspIDct.o \
  34. bsp\bsprecon.o \
  35. bsp\bspvputil.o \
  36. bsp\uoptsystemdependant.o
  37. SRCS =$(OBJS:.o=.c)
  38. ARTARGET =${TARGET}.a
  39. # archive
  40. ARTARGET:${OBJS}
  41. ${AR} -cr ${ARTARGET} ${OBJS}
  42. mv ${ARTARGET} ${LIBDIR}
  43. ${OBJS} : ${SRCS}
  44. $(CC) $(ALLFLAGS) -c $*.c -o $*.o
  45. clean:
  46. ${RM} ${OBJS} ${ARTARGET}