Ticket #65561: 1000-Makefile.patch
File 1000-Makefile.patch, 2.4 KB (added by RobK88, 2 years ago) |
---|
-
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 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 7 CXXFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 7 8 8 9 all: 9 10 @echo "" … … 12 13 @echo "" 13 14 @echo "TARGET_SYSTEM is one of" 14 15 @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 16 18 @echo " posix : POSIX system (FreeBSD/linux/OSX/sparc/Win32)" 17 19 @echo " linux-utf8 : LINUX with utf8 filesystem(without -liconv option)" 18 20 @echo " posix-noiconv : POSIX without libiconv (Windows(MINGW32,CYGWIN) or EUC-KR file system)" … … 22 24 @echo "" 23 25 24 26 posix: unalz 25 $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV $(C FLAGS)27 $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV $(CXXFLAGS) 26 28 $(CPP) $(OBJ) $(LDFLAGS) -liconv -o $(BIN) 27 29 28 30 posix-utf8: unalz 29 $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(C FLAGS)31 $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CXXFLAGS) 30 32 $(CPP) $(OBJ) $(LDFLAGS) -liconv -o $(BIN) 31 33 32 34 posix-noiconv: unalz 33 $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp $(C FLAGS)35 $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp $(CXXFLAGS) 34 36 $(CPP) $(OBJ) $(LDFLAGS) -o $(BIN) 35 37 36 38 linux-utf8: unalz 37 $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(C FLAGS)39 $(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CXXFLAGS) 38 40 $(CPP) $(OBJ) $(LDFLAGS) -o $(BIN) 39 41 40 42 install: