Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
1.3 KiB

  1. OS=$(shell uname)
  2. AR=ar
  3. ifeq ($(OS),CYGWIN_NT-5.1)
  4. _CYGWIN=1
  5. endif
  6. ifeq ($(OS),Linux)
  7. CXX=g++
  8. endif
  9. ifeq ($(OS),Darwin)
  10. CXX=g++-4.2
  11. endif
  12. ifeq ($(_CYGWIN),1)
  13. CXX=/valve/gcc-4.2.4-windows/bin/g++
  14. AR=/gcc/ar
  15. RUN_RANLIB=ranlib libjpeg.a
  16. endif
  17. HOST_CFLAGS=-O3 -DfPIC
  18. JPEG_CFLAGS :=
  19. JPEG_HCFLAGS := $(JPEG_CFLAGS) -msse -mfpmath=sse
  20. JPEG_SRCS := \
  21. jcapimin.c \
  22. jcapistd.c \
  23. jccoefct.c \
  24. jccolor.c \
  25. jcdctmgr.c \
  26. jchuff.c \
  27. jcinit.c \
  28. jcmainct.c \
  29. jcmarker.c \
  30. jcmaster.c \
  31. jcomapi.c \
  32. jcparam.c \
  33. jcphuff.c \
  34. jcprepct.c \
  35. jcsample.c \
  36. jctrans.c \
  37. jdapimin.c\
  38. jdapistd.c \
  39. jdatadst.c \
  40. jdatasrc.c \
  41. jdcoefct.c \
  42. jdcolor.c \
  43. jddctmgr.c \
  44. jdhuff.c \
  45. jdinput.c \
  46. jdmainct.c \
  47. jdmarker.c \
  48. jdmaster.c \
  49. jdmerge.c \
  50. jdphuff.c \
  51. jdpostct.c \
  52. jdsample.c \
  53. jdtrans.c \
  54. jerror.c \
  55. jfdctflt.c \
  56. jfdctfst.c \
  57. jfdctint.c \
  58. jidctflt.c \
  59. jidctfst.c \
  60. jidctint.c \
  61. jidctred.c \
  62. jmemmgr.c \
  63. jmemnobs.c \
  64. jquant1.c \
  65. jquant2.c \
  66. jutils.c
  67. JPEG_TARGETS := djpeg
  68. OBJDIRS += jpeg
  69. CLEAN_FILES += $(JPEG_DOBJS) $(JPEG_NOBJS) $(JPEG_TARGETS)
  70. JPEG_HDOBJS := $(patsubst %.c,%.o,$(JPEG_SRCS))
  71. CLEAN_FILES += $(JPEG_HDOBJS) jpeg/hdjpeg
  72. hdjpeg: $(JPEG_HDOBJS)
  73. $(AR) rs libjpeg.a $(JPEG_HDOBJS);
  74. $(RUN_RANLIB)
  75. %.o: %.c
  76. $(CXX) -o $@ $(HOST_CFLAGS) $(JPEG_HCFLAGS) -c $<
  77. clean:
  78. rm *.o
  79. all: $(JPEG_TARGETS)