mirror of
https://github.com/lammertb/libcrc.git
synced 2025-10-14 01:59:00 +08:00
Fixed directory issue on Linux
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -16,5 +16,5 @@ testall.exe
|
||||
testall
|
||||
tstcrc.exe
|
||||
tstcrc
|
||||
precalc.exe
|
||||
precalc
|
||||
bin/prc.exe
|
||||
bin/prc
|
||||
|
16
Makefile
16
Makefile
@@ -58,6 +58,7 @@
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
|
||||
BINDIR = bin\\
|
||||
GENDIR = precalc\\
|
||||
INCDIR = include\\
|
||||
LIBDIR = lib\\
|
||||
@@ -85,6 +86,7 @@ CFLAGS = -Ox -Ot -MT -GT -volatile:iso -I${INCDIR} -nologo -J -sdl -Wall -WX \
|
||||
|
||||
else
|
||||
|
||||
BINDIR = bin/
|
||||
GENDIR = precalc/
|
||||
INCDIR = include/
|
||||
LIBDIR = lib/
|
||||
@@ -151,7 +153,7 @@ clean:
|
||||
${RM} ${TSTDIR}${OBJDIR}*${OBJEXT}
|
||||
${RM} ${GENDIR}${OBJDIR}*${OBJEXT}
|
||||
${RM} ${LIBDIR}libcrc${LIBEXT}
|
||||
${RM} precalc${EXEEXT}
|
||||
${RM} ${BINDIR}prc${EXEEXT}
|
||||
${RM} testall${EXEEXT}
|
||||
${RM} tstcrc${EXEEXT}
|
||||
|
||||
@@ -174,18 +176,18 @@ testall${EXEEXT} : \
|
||||
${STRIP} testall${EXEEXT}
|
||||
|
||||
#
|
||||
# The precalc program is used during compilation to generate the lookup tables
|
||||
# The prc program is used during compilation to generate the lookup tables
|
||||
# for the CRC calculation routines.
|
||||
#
|
||||
|
||||
precalc${EXEEXT} : \
|
||||
${BINDIR}prc${EXEEXT} : \
|
||||
${GENDIR}${OBJDIR}precalc${OBJEXT} \
|
||||
${GENDIR}${OBJDIR}crc64_table${OBJEXT} \
|
||||
Makefile
|
||||
${LINK} ${XFLAG}precalc${EXEEXT} \
|
||||
${LINK} ${XFLAG}${BINDIR}prc${EXEEXT} \
|
||||
${GENDIR}${OBJDIR}precalc${OBJEXT} \
|
||||
${GENDIR}${OBJDIR}crc64_table${OBJEXT}
|
||||
${STRIP} precalc${EXEEXT}
|
||||
${STRIP} ${BINDIR}prc${EXEEXT}
|
||||
|
||||
#
|
||||
# The tstcrc program can be run to calculate the CRC values of manual input or
|
||||
@@ -233,8 +235,8 @@ ${LIBDIR}libcrc${LIBEXT} : \
|
||||
# Lookup table include file dependencies
|
||||
#
|
||||
|
||||
${TABDIR}gentab64.inc : precalc${EXEEXT}
|
||||
precalc --crc64 ${TABDIR}gentab64.inc
|
||||
${TABDIR}gentab64.inc : ${BINDIR}prc${EXEEXT}
|
||||
${BINDIR}prc --crc64 ${TABDIR}gentab64.inc
|
||||
|
||||
#
|
||||
# Individual source files with their header file dependencies
|
||||
|
3
bin/README
Normal file
3
bin/README
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
# Directory for binary utilities
|
||||
#
|
Reference in New Issue
Block a user