Advertisement
snake5

My libjpg compilation method

Aug 10th, 2014
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.98 KB | None | 0 0
  1. // libjpg1.c
  2. #include "libjpg/jaricom.c"
  3. #include "libjpg/jcapimin.c"
  4. #include "libjpg/jcapistd.c"
  5. #include "libjpg/jcarith.c"
  6. #include "libjpg/jctrans.c"
  7. #include "libjpg/jcparam.c"
  8. #include "libjpg/jdatadst.c"
  9. #include "libjpg/jcinit.c"
  10. #include "libjpg/jcmaster.c"
  11. #include "libjpg/jcmainct.c"
  12. #include "libjpg/jcprepct.c"
  13. #include "libjpg/jccolor.c"
  14. #include "libjpg/jcsample.c"
  15.  
  16. #undef FIX
  17. #include "libjpg/jcdctmgr.c"
  18. #undef FIX
  19. #undef CONST_BITS
  20. #undef DESCALE
  21. #include "libjpg/jfdctfst.c"
  22. #undef FIX
  23. #undef DESCALE
  24. #include "libjpg/jfdctflt.c"
  25. #undef FIX
  26. #undef CONST_BITS
  27. #undef FIX_0_541196100
  28. #undef MULTIPLY
  29. #include "libjpg/jfdctint.c"
  30.  
  31. #include "libjpg/jdapimin.c"
  32. #include "libjpg/jdapistd.c"
  33. #include "libjpg/jdtrans.c"
  34. #include "libjpg/jdatasrc.c"
  35. #include "libjpg/jdmarker.c"
  36. #include "libjpg/jdhuff.c"
  37. #include "libjpg/jdpostct.c"
  38. #undef FIX
  39. #undef CONST_BITS
  40. #undef FIX_1_847759065
  41. #undef MULTIPLY
  42. #include "libjpg/jidctfst.c"
  43. #undef DESCALE
  44. #undef DEQUANTIZE
  45. #include "libjpg/jidctflt.c"
  46. #undef CONST_BITS
  47. #undef FIX_1_847759065
  48. #undef MULTIPLY
  49. #undef DEQUANTIZE
  50. #include "libjpg/jidctint.c"
  51. #include "libjpg/jdsample.c"
  52. #include "libjpg/jquant1.c"
  53. #include "libjpg/jcomapi.c"
  54. #include "libjpg/jutils.c"
  55. #include "libjpg/jerror.c"
  56. #include "libjpg/jmemmgr.c"
  57.  
  58. // libjpg2.c
  59. #include "libjpg/jcmarker.c"
  60. #include "libjpg/jccoefct.c"
  61. #include "libjpg/jchuff.c"
  62. #include "libjpg/jdarith.c"
  63. #include "libjpg/jdmaster.c"
  64. #include "libjpg/jdinput.c"
  65. #include "libjpg/jdmainct.c"
  66. #include "libjpg/jdcolor.c"
  67. #include "libjpg/jquant2.c"
  68. #include "libjpg/jmemnobs.c"
  69.  
  70. // libjpg3.c
  71. #include "libjpg/jdcoefct.c"
  72. #include "libjpg/jddctmgr.c"
  73. #undef FIX
  74. #include "libjpg/jdmerge.c"
  75.  
  76. // compilation commands
  77. // gcc -o obj/libjpg1.o -c $(CFLAGS) ext/src/libjpg1.c
  78. // gcc -o obj/libjpg2.o -c $(CFLAGS) ext/src/libjpg2.c
  79. // gcc -o obj/libjpg3.o -c $(CFLAGS) ext/src/libjpg3.c
  80. // ar -rcs obj/libjpg.a obj/libjpg1.o obj/libjpg2.o obj/libjpg3.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement