misc/libphysfs/lzma/CPP/7zip/Compress/LZMA_Alone/makefile.gcc
changeset 12213 bb5522e88ab2
equal deleted inserted replaced
12212:ea891871f481 12213:bb5522e88ab2
       
     1 PROG = lzma
       
     2 CXX = g++ -O2 -Wall
       
     3 CXX_C = gcc -O2 -Wall
       
     4 LIB = -lm
       
     5 RM = rm -f
       
     6 CFLAGS = -c
       
     7 
       
     8 ifdef SystemDrive
       
     9 IS_MINGW = 1
       
    10 endif
       
    11 
       
    12 ifdef IS_MINGW
       
    13 FILE_IO =FileIO
       
    14 FILE_IO_2 =Windows/$(FILE_IO)
       
    15 LIB2 = -luuid 
       
    16 else
       
    17 FILE_IO =C_FileIO
       
    18 FILE_IO_2 =Common/$(FILE_IO)
       
    19 endif
       
    20 
       
    21 OBJS = \
       
    22   LzmaAlone.o \
       
    23   LzmaBench.o \
       
    24   LzmaBenchCon.o \
       
    25   LzmaRam.o \
       
    26   LZMADecoder.o \
       
    27   LZMAEncoder.o \
       
    28   LZOutWindow.o \
       
    29   RangeCoderBit.o \
       
    30   InBuffer.o \
       
    31   OutBuffer.o \
       
    32   FileStreams.o \
       
    33   StreamUtils.o \
       
    34   $(FILE_IO).o \
       
    35   CommandLineParser.o \
       
    36   CRC.o \
       
    37   IntToString.o \
       
    38   MyString.o \
       
    39   StringConvert.o \
       
    40   StringToInt.o \
       
    41   MyVector.o \
       
    42   7zCrc.o \
       
    43   Alloc.o \
       
    44   BranchX86.o \
       
    45   MatchFinder.o \
       
    46   LzmaDecode.o \
       
    47   LzmaRamDecode.o \
       
    48 
       
    49 
       
    50 all: $(PROG)
       
    51 
       
    52 $(PROG): $(OBJS)
       
    53 	$(CXX) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIB) $(LIB2)
       
    54 
       
    55 LzmaAlone.o: LzmaAlone.cpp
       
    56 	$(CXX) $(CFLAGS) LzmaAlone.cpp
       
    57 
       
    58 LzmaBench.o: LzmaBench.cpp
       
    59 	$(CXX) $(CFLAGS) LzmaBench.cpp
       
    60 
       
    61 LzmaBenchCon.o: LzmaBenchCon.cpp
       
    62 	$(CXX) $(CFLAGS) LzmaBenchCon.cpp
       
    63 
       
    64 LzmaRam.o: LzmaRam.cpp
       
    65 	$(CXX) $(CFLAGS) LzmaRam.cpp
       
    66 
       
    67 LZMADecoder.o: ../LZMA/LZMADecoder.cpp
       
    68 	$(CXX) $(CFLAGS) ../LZMA/LZMADecoder.cpp
       
    69 
       
    70 LZMAEncoder.o: ../LZMA/LZMAEncoder.cpp
       
    71 	$(CXX) $(CFLAGS) ../LZMA/LZMAEncoder.cpp
       
    72 
       
    73 LZOutWindow.o: ../LZ/LZOutWindow.cpp
       
    74 	$(CXX) $(CFLAGS) ../LZ/LZOutWindow.cpp
       
    75 
       
    76 RangeCoderBit.o: ../RangeCoder/RangeCoderBit.cpp
       
    77 	$(CXX) $(CFLAGS) ../RangeCoder/RangeCoderBit.cpp
       
    78 
       
    79 InBuffer.o: ../../Common/InBuffer.cpp
       
    80 	$(CXX) $(CFLAGS) ../../Common/InBuffer.cpp
       
    81 
       
    82 OutBuffer.o: ../../Common/OutBuffer.cpp
       
    83 	$(CXX) $(CFLAGS) ../../Common/OutBuffer.cpp
       
    84 
       
    85 FileStreams.o: ../../Common/FileStreams.cpp
       
    86 	$(CXX) $(CFLAGS) ../../Common/FileStreams.cpp
       
    87 
       
    88 StreamUtils.o: ../../Common/StreamUtils.cpp
       
    89 	$(CXX) $(CFLAGS) ../../Common/StreamUtils.cpp
       
    90 
       
    91 $(FILE_IO).o: ../../../$(FILE_IO_2).cpp
       
    92 	$(CXX) $(CFLAGS) ../../../$(FILE_IO_2).cpp
       
    93 
       
    94 
       
    95 CommandLineParser.o: ../../../Common/CommandLineParser.cpp
       
    96 	$(CXX) $(CFLAGS) ../../../Common/CommandLineParser.cpp
       
    97 
       
    98 CRC.o: ../../../Common/CRC.cpp
       
    99 	$(CXX) $(CFLAGS) ../../../Common/CRC.cpp
       
   100 
       
   101 MyWindows.o: ../../../Common/MyWindows.cpp
       
   102 	$(CXX) $(CFLAGS) ../../../Common/MyWindows.cpp
       
   103 
       
   104 IntToString.o: ../../../Common/IntToString.cpp
       
   105 	$(CXX) $(CFLAGS) ../../../Common/IntToString.cpp
       
   106 
       
   107 MyString.o: ../../../Common/MyString.cpp
       
   108 	$(CXX) $(CFLAGS) ../../../Common/MyString.cpp
       
   109 
       
   110 StringConvert.o: ../../../Common/StringConvert.cpp
       
   111 	$(CXX) $(CFLAGS) ../../../Common/StringConvert.cpp
       
   112 
       
   113 StringToInt.o: ../../../Common/StringToInt.cpp
       
   114 	$(CXX) $(CFLAGS) ../../../Common/StringToInt.cpp
       
   115 
       
   116 MyVector.o: ../../../Common/MyVector.cpp
       
   117 	$(CXX) $(CFLAGS) ../../../Common/MyVector.cpp
       
   118 
       
   119 7zCrc.o: ../../../../C/7zCrc.c
       
   120 	$(CXX_C) $(CFLAGS) ../../../../C/7zCrc.c
       
   121 
       
   122 Alloc.o: ../../../../C/Alloc.c
       
   123 	$(CXX_C) $(CFLAGS) ../../../../C/Alloc.c
       
   124 
       
   125 BranchX86.o: ../../../../C/Compress/Branch/BranchX86.c
       
   126 	$(CXX_C) $(CFLAGS) ../../../../C/Compress/Branch/BranchX86.c
       
   127 
       
   128 MatchFinder.o: ../../../../C/Compress/Lz/MatchFinder.c
       
   129 	$(CXX_C) $(CFLAGS) ../../../../C/Compress/Lz/MatchFinder.c
       
   130 
       
   131 LzmaDecode.o: ../../../../C/Compress/Lzma/LzmaDecode.c
       
   132 	$(CXX_C) $(CFLAGS) ../../../../C/Compress/Lzma/LzmaDecode.c
       
   133 
       
   134 LzmaRamDecode.o: LzmaRamDecode.c
       
   135 	$(CXX_C) $(CFLAGS) LzmaRamDecode.c
       
   136 
       
   137 clean:
       
   138 	-$(RM) $(PROG) $(OBJS)
       
   139