Ticket #65561: 1000-Makefile.patch

File 1000-Makefile.patch, 2.4 KB (added by RobK88, 2 years ago)

Makefile Patch

  • Makefile

    old new  
    1 CPP = g++
    2 CC  = gcc
    3 OBJ = main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o UnAlzBzip2.o UnAlzbzlib.o zlib/adler32.o zlib/crc32.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/zutil.o bzip2/blocksort.o bzip2/compress.o bzip2/crctable.o bzip2/huffman.o bzip2/randtable.o
    4 BIN = unalz
    5 LDFLAGS =
    6 CFLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
     1CPP := g++
     2CC  := gcc
     3OBJ := main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o UnAlzBzip2.o UnAlzbzlib.o zlib/adler32.o zlib/crc32.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/zutil.o bzip2/blocksort.o bzip2/compress.o bzip2/crctable.o bzip2/huffman.o bzip2/randtable.o
     4BIN := unalz
     5LDFLAGS +=
     6CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
     7CXXFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
    78
    89all:
    910        @echo ""
     
    1213        @echo ""
    1314        @echo "TARGET_SYSTEM is one of"
    1415        @echo ""
    15         @echo " posix-utf8        : POSIX with utf8 filesystem(Most of modern OS, e.g. OSX/Ubuntu)"
     16        @echo " posix-utf8        : POSIX with utf8 filesystem(Most of modern OS, e.g. OSX/Ubuntu)"
     17
    1618        @echo " posix             : POSIX system (FreeBSD/linux/OSX/sparc/Win32)"
    1719        @echo " linux-utf8        : LINUX with utf8 filesystem(without -liconv option)"
    1820        @echo " posix-noiconv     : POSIX without libiconv (Windows(MINGW32,CYGWIN) or EUC-KR file system)"
     
    2224        @echo ""
    2325
    2426posix: unalz
    25         $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV $(CFLAGS)
     27        $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV $(CXXFLAGS)
    2628        $(CPP) $(OBJ) $(LDFLAGS) -liconv -o $(BIN)
    2729
    2830posix-utf8: unalz
    29         $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CFLAGS)
     31        $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CXXFLAGS)
    3032        $(CPP) $(OBJ) $(LDFLAGS) -liconv -o $(BIN)
    3133
    3234posix-noiconv: unalz
    33         $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp $(CFLAGS)
     35        $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp $(CXXFLAGS)
    3436        $(CPP) $(OBJ) $(LDFLAGS) -o $(BIN)
    3537
    3638linux-utf8: unalz
    37         $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CFLAGS)
     39        $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CXXFLAGS)
    3840        $(CPP) $(OBJ) $(LDFLAGS) -o $(BIN)
    3941
    4042install: