makefile.gcc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. PROG = 7zDec
  2. CXX = g++
  3. LIB =
  4. RM = rm -f
  5. CFLAGS = -c -O2 -Wall -D_LZMA_IN_CB
  6. 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
  7. all: $(PROG)
  8. $(PROG): $(OBJS)
  9. $(CXX) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIB)
  10. 7zAlloc.o: 7zAlloc.c
  11. $(CXX) $(CFLAGS) 7zAlloc.c
  12. 7zBuffer.o: 7zBuffer.c
  13. $(CXX) $(CFLAGS) 7zBuffer.c
  14. 7zCrc.o: ../../7zCrc.c
  15. $(CXX) $(CFLAGS) ../../7zCrc.c
  16. 7zDecode.o: 7zDecode.c
  17. $(CXX) $(CFLAGS) 7zDecode.c
  18. 7zExtract.o: 7zExtract.c
  19. $(CXX) $(CFLAGS) 7zExtract.c
  20. 7zHeader.o: 7zHeader.c
  21. $(CXX) $(CFLAGS) 7zHeader.c
  22. 7zIn.o: 7zIn.c
  23. $(CXX) $(CFLAGS) 7zIn.c
  24. 7zItem.o: 7zItem.c
  25. $(CXX) $(CFLAGS) 7zItem.c
  26. 7zMain.o: 7zMain.c
  27. $(CXX) $(CFLAGS) 7zMain.c
  28. 7zMethodID.o: 7zMethodID.c
  29. $(CXX) $(CFLAGS) 7zMethodID.c
  30. LzmaDecode.o: ../../Compress/Lzma/LzmaDecode.c
  31. $(CXX) $(CFLAGS) ../../Compress/Lzma/LzmaDecode.c
  32. BranchX86.o: ../../Compress/Branch/BranchX86.c
  33. $(CXX) $(CFLAGS) ../../Compress/Branch/BranchX86.c
  34. BranchX86_2.o: ../../Compress/Branch/BranchX86_2.c
  35. $(CXX) $(CFLAGS) ../../Compress/Branch/BranchX86_2.c
  36. clean:
  37. -$(RM) $(PROG) $(OBJS)