Remove the config.h file from the build. Ticket #1224. (CVS 2480)

FossilOrigin-Name: 3e64f1ab417f371e9875915303b898c5b45f0807
This commit is contained in:
drh
2005-05-24 20:19:57 +00:00
parent fd9a0a45a7
commit 97903fef77
9 changed files with 29 additions and 80 deletions
-17
View File
@@ -193,7 +193,6 @@ TESTSRC = \
HDR = \
sqlite3.h \
$(TOP)/src/btree.h \
config.h \
$(TOP)/src/hash.h \
opcodes.h \
$(TOP)/src/os.h \
@@ -277,22 +276,6 @@ btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
build.lo: $(TOP)/src/build.c $(HDR)
$(LTCOMPILE) -c $(TOP)/src/build.c
# The config.h file will contain a single #define that tells us how
# many bytes are in a pointer. This only works if a pointer is the
# same size on the host as it is on the target. If you are cross-compiling
# to a target with a different pointer size, you'll need to manually
# configure the config.h file.
#
config.h:
echo '#include <stdio.h>' >temp.c
echo 'int main(){printf(' >>temp.c
echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c
echo 'exit(0);}' >>temp.c
$(BCC) -o temp temp.c
./temp >config.h
echo >>config.h
rm -f temp.c temp
callback.lo: $(TOP)/src/callback.c $(HDR)
$(LTCOMPILE) -c $(TOP)/src/callback.c