Generate .c files instead of .h files

The files' contents haven't changed (other than some relative #include's
that refer to other .c files).

Some build systems have difficulty recognizing .h files as things to be
compiled, instead of just things referred to by things to be compiled.
This commit is contained in:
Nigel Tao committed 2018-12-22 15:29:00 +11:00
1 parent b0429923fc
commit 04c91f1410
24 files changed
+40 -49

No files matched your search

+3 -3
View File
@@ -37,7 +37,7 @@
# gcc zcat.c
# ./a.out < ../../test/data/romeo.txt.gz
if [ ! -e release/c/wuffs-unsupported-snapshot.h ]; then
if [ ! -e release/c/wuffs-unsupported-snapshot.c ]; then
echo "$0 should be run from the Wuffs root directory."
exit 1
fi
@@ -48,11 +48,11 @@ wuffs gen
echo "Checking snapshot compiles cleanly (as C)"
gcc -c -Wall -Werror -DWUFFS_IMPLEMENTATION -std=c99 \
release/c/wuffs-unsupported-snapshot.h -o /dev/null
release/c/wuffs-unsupported-snapshot.c -o /dev/null
echo "Checking snapshot compiles cleanly (as C++)"
g++ -c -Wall -Werror -DWUFFS_IMPLEMENTATION -std=c++11 \
release/c/wuffs-unsupported-snapshot.h -o /dev/null
release/c/wuffs-unsupported-snapshot.c -o /dev/null
wuffs genlib -skipgen
wuffs test -skipgen -mimic