forked from mirror/unalz
respect compiler flags
This commit is contained in:
parent
8fd5540542
commit
13c47e51fd
1 changed files with 6 additions and 6 deletions
10
Makefile
10
Makefile
|
@ -1,8 +1,8 @@
|
||||||
CPP = g++
|
#CPP = g++
|
||||||
CC = gcc
|
#CC = gcc
|
||||||
OBJ = main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o UnAlzBzip2.o UnAlzbzlib.o
|
OBJ = main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o UnAlzBzip2.o UnAlzbzlib.o
|
||||||
BIN = unalz
|
BIN = unalz
|
||||||
LDFLAGS =
|
LDFLAGS += -lz -lbz2
|
||||||
CFLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
CFLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
@ -34,8 +34,8 @@ posix-noiconv: unalz
|
||||||
$(CPP) $(OBJ) $(LDFLAGS) -o $(BIN)
|
$(CPP) $(OBJ) $(LDFLAGS) -o $(BIN)
|
||||||
|
|
||||||
linux-utf8: unalz
|
linux-utf8: unalz
|
||||||
$(CPP) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CFLAGS)
|
$(CXX) -c UnAlz.cpp -c UnAlzUtils.cpp -c main.cpp -D_UNALZ_ICONV -D_UNALZ_UTF8 $(CFLAGS)
|
||||||
$(CPP) $(OBJ) $(LDFLAGS) -lz -lbz2 -o $(BIN)
|
$(CXX) $(OBJ) $(LDFLAGS) -o $(BIN)
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cp unalz /usr/local/bin/
|
cp unalz /usr/local/bin/
|
||||||
|
|
Loading…
Reference in a new issue