Makefile (afio-2.5.1.tgz) | : | Makefile (afio-2.5.2.tgz) | ||
---|---|---|---|---|
skipping to change at line 71 | skipping to change at line 71 | |||
# redistribute afio executables with this library linked in. | # redistribute afio executables with this library linked in. | |||
#uncomment one of the two lines below to | #uncomment one of the two lines below to | |||
#get the normal or large file compile environment | #get the normal or large file compile environment | |||
# afio will work when compiled in both environments, but on old or non-linux | # afio will work when compiled in both environments, but on old or non-linux | |||
# systems the large file compile environment itself might be buggy or beta. | # systems the large file compile environment itself might be buggy or beta. | |||
#LARGEFILEFLAGS= | #LARGEFILEFLAGS= | |||
LARGEFILEFLAGS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE | LARGEFILEFLAGS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE | |||
# even more warnings flags.. | # even more warnings flags.. | |||
MW= | MW=-Wformat -Werror=format-security -Wall | |||
#the set of warning flags below can be uncommented to get lots of places where | ||||
#code can be reviewed manually | ||||
#MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -W implicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissin g-declarations | #MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -W implicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissin g-declarations | |||
CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer ${LARGEFILEFLAGS } ${MW} | CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-resu lt $(LARGEFILEFLAGS) $(MW) | |||
CC=gcc | CC=gcc | |||
CFLAGS = ${CFLAGS1} $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e ${e2} $f $g $I | # also using contents of usin CPPFLAGS, CFLAGS, LDFLAGS out of environment | |||
LDFLAGS = | # variables, if they exist | |||
CFLAGS += $(CFLAGS1) $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $(e2) $f $g $I | ||||
LDFLAGS += | ||||
CPPFLAGS += | ||||
afio : afio.o compfile.o exten.o match.o $M | afio : afio.o compfile.o exten.o match.o $M | |||
${CC} ${LDFLAGS} afio.o compfile.o exten.o match.o $M -o afio | $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \ | |||
afio.o compfile.o exten.o match.o $M -o afio | ||||
clean: | clean: | |||
rm -f *.o afio | rm -f *.o afio | |||
rm -f regtest/cmpstat regtest/makesparse | rm -f regtest/cmpstat regtest/makesparse | |||
rm -f regtest/statsize regtest/statsize64 | rm -f regtest/statsize regtest/statsize64 | |||
cd regtest; /bin/sh regtest.clean | cd regtest; /bin/sh regtest.clean | |||
install: afio | install: afio | |||
cp afio /usr/local/bin | cp afio /usr/local/bin | |||
cp afio.1 /usr/share/man/man1 | cp afio.1 /usr/share/man/man1 | |||
End of changes. 4 change blocks. | ||||
5 lines changed or deleted | 12 lines changed or added |