1PROG = 7zDec 2CXX = gcc 3LIB = 4RM = rm -f 5CFLAGS = -c -O2 -Wall 6 7OBJS = 7zMain.o 7zAlloc.o 7zArcIn.o 7zBuf.o 7zBuf2.o 7zCrc.o 7zCrcOpt.o 7zDec.o CpuArch.o Delta.o LzmaDec.o Lzma2Dec.o Bra.o Bra86.o BraIA64.o Bcj2.o Ppmd7.o Ppmd7Dec.o 7zFile.o 7zStream.o 8 9all: $(PROG) 10 11$(PROG): $(OBJS) 12 $(CXX) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIB) 13 147zMain.o: 7zMain.c 15 $(CXX) $(CFLAGS) 7zMain.c 16 177zAlloc.o: ../../7zAlloc.c 18 $(CXX) $(CFLAGS) ../../7zAlloc.c 19 207zArcIn.o: ../../7zArcIn.c 21 $(CXX) $(CFLAGS) ../../7zArcIn.c 22 237zBuf.o: ../../7zBuf.c 24 $(CXX) $(CFLAGS) ../../7zBuf.c 25 267zBuf2.o: ../../7zBuf2.c 27 $(CXX) $(CFLAGS) ../../7zBuf2.c 28 297zCrc.o: ../../7zCrc.c 30 $(CXX) $(CFLAGS) ../../7zCrc.c 31 327zCrcOpt.o: ../../7zCrc.c 33 $(CXX) $(CFLAGS) ../../7zCrcOpt.c 34 357zDec.o: ../../7zDec.c 36 $(CXX) $(CFLAGS) -D_7ZIP_PPMD_SUPPPORT ../../7zDec.c 37 38CpuArch.o: ../../CpuArch.c 39 $(CXX) $(CFLAGS) ../../CpuArch.c 40 41Delta.o: ../../Delta.c 42 $(CXX) $(CFLAGS) ../../Delta.c 43 44LzmaDec.o: ../../LzmaDec.c 45 $(CXX) $(CFLAGS) ../../LzmaDec.c 46 47Lzma2Dec.o: ../../Lzma2Dec.c 48 $(CXX) $(CFLAGS) ../../Lzma2Dec.c 49 50Bra.o: ../../Bra.c 51 $(CXX) $(CFLAGS) ../../Bra.c 52 53Bra86.o: ../../Bra86.c 54 $(CXX) $(CFLAGS) ../../Bra86.c 55 56BraIA64.o: ../../BraIA64.c 57 $(CXX) $(CFLAGS) ../../BraIA64.c 58 59Bcj2.o: ../../Bcj2.c 60 $(CXX) $(CFLAGS) ../../Bcj2.c 61 62Ppmd7.o: ../../Ppmd7.c 63 $(CXX) $(CFLAGS) ../../Ppmd7.c 64 65Ppmd7Dec.o: ../../Ppmd7Dec.c 66 $(CXX) $(CFLAGS) ../../Ppmd7Dec.c 67 687zFile.o: ../../7zFile.c 69 $(CXX) $(CFLAGS) ../../7zFile.c 70 717zStream.o: ../../7zStream.c 72 $(CXX) $(CFLAGS) ../../7zStream.c 73 74clean: 75 -$(RM) $(PROG) $(OBJS) 76