misc/libphysfs/lzma/C/Archive/7z/makefile.gcc
changeset 12218 bb5522e88ab2
equal deleted inserted replaced
12217:ea891871f481 12218:bb5522e88ab2
       
     1 PROG = 7zDec
       
     2 CXX = g++
       
     3 LIB = 
       
     4 RM = rm -f
       
     5 CFLAGS = -c -O2 -Wall -D_LZMA_IN_CB
       
     6 
       
     7 OBJS = 7zAlloc.o 7zBuffer.o 7zCrc.o 7zDecode.o 7zExtract.o 7zHeader.o 7zIn.o 7zItem.o 7zMain.o 7zMethodID.o LzmaDecode.o BranchX86.o BranchX86_2.o
       
     8 
       
     9 all: $(PROG)
       
    10 
       
    11 $(PROG): $(OBJS)
       
    12 	$(CXX) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIB)
       
    13 
       
    14 7zAlloc.o: 7zAlloc.c
       
    15 	$(CXX) $(CFLAGS) 7zAlloc.c
       
    16 
       
    17 7zBuffer.o: 7zBuffer.c
       
    18 	$(CXX) $(CFLAGS) 7zBuffer.c
       
    19 
       
    20 7zCrc.o: ../../7zCrc.c
       
    21 	$(CXX) $(CFLAGS) ../../7zCrc.c
       
    22 
       
    23 7zDecode.o: 7zDecode.c
       
    24 	$(CXX) $(CFLAGS) 7zDecode.c
       
    25 
       
    26 7zExtract.o: 7zExtract.c
       
    27 	$(CXX) $(CFLAGS) 7zExtract.c
       
    28 
       
    29 7zHeader.o: 7zHeader.c
       
    30 	$(CXX) $(CFLAGS) 7zHeader.c
       
    31 
       
    32 7zIn.o: 7zIn.c
       
    33 	$(CXX) $(CFLAGS) 7zIn.c
       
    34 
       
    35 7zItem.o: 7zItem.c
       
    36 	$(CXX) $(CFLAGS) 7zItem.c
       
    37 
       
    38 7zMain.o: 7zMain.c
       
    39 	$(CXX) $(CFLAGS) 7zMain.c
       
    40 
       
    41 7zMethodID.o: 7zMethodID.c
       
    42 	$(CXX) $(CFLAGS) 7zMethodID.c
       
    43 
       
    44 LzmaDecode.o: ../../Compress/Lzma/LzmaDecode.c
       
    45 	$(CXX) $(CFLAGS) ../../Compress/Lzma/LzmaDecode.c
       
    46 
       
    47 BranchX86.o: ../../Compress/Branch/BranchX86.c
       
    48 	$(CXX) $(CFLAGS) ../../Compress/Branch/BranchX86.c
       
    49 
       
    50 BranchX86_2.o: ../../Compress/Branch/BranchX86_2.c
       
    51 	$(CXX) $(CFLAGS) ../../Compress/Branch/BranchX86_2.c
       
    52 
       
    53 clean:
       
    54 	-$(RM) $(PROG) $(OBJS)
       
    55