Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ## Target to built
  2. TARGET =libpreproc
  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. CURRENTDIR =${TOPDIR}\private\corelibs\cdxv\preproc
  16. LIBDIR =${TOPDIR}\private\corelibs\lib\mapca
  17. ## Compile Flags
  18. ALLINCLUDES =-I${CDXVINCLUDE} -I${CORELIBSINCLUDE} -I${PRIVATEINCLUDE} -I${PRIVATEINCLUDE2}
  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 = preproc.o \
  29. SRCS = $(OBJS:.o=.c)
  30. ARTARGET = ${TARGET}.a
  31. # archive
  32. ARTARGET:${OBJS}
  33. ${AR} -cr ${ARTARGET} ${OBJS}
  34. mv ${ARTARGET} ${LIBDIR}
  35. ${OBJS} : ${SRCS}
  36. $(CC) $(ALLFLAGS) -c $*.c -o $*.o
  37. clean:
  38. ${RM} ${OBJS} ${ARTARGET}