Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ## Target to built
  2. TARGET =libvppp
  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\vppp\include
  15. CURRENTDIR =${TOPDIR}\private\corelibs\cdxv\vppp
  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 = bsp\borders.o \
  29. generic\clamp.o \
  30. generic\deblock.o \
  31. generic\DeInterlace.o \
  32. generic\Dering.o \
  33. generic\loopfilter.o \
  34. generic\postproc.o \
  35. generic\scale.o \
  36. generic\simpledeblocker.o \
  37. generic\doptsystemdependant.o
  38. SRCS = $(OBJS:.o=.c)
  39. ARTARGET = ${TARGET}.a
  40. # archive
  41. ARTARGET:${OBJS}
  42. ${AR} -cr ${ARTARGET} ${OBJS}
  43. mv ${ARTARGET} ${LIBDIR}
  44. ${OBJS} : ${SRCS}
  45. $(CC) $(ALLFLAGS) -c $*.c -o $*.o
  46. clean:
  47. ${RM} ${OBJS} ${ARTARGET}