projects
/
libjh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jh.h, not libjh.h
[libjh.git]
/
compile.sh
diff --git
a/compile.sh
b/compile.sh
index
e770e59
..
0768daf
100755
(executable)
--- a/
compile.sh
+++ b/
compile.sh
@@
-39,7
+39,7
@@
for source_file in $(ls|grep '\.c$'); do
echo ''
echo ''
echo ''
echo ''
-done > gen/
lib
jh.h
+done > gen/jh.h
# preprocess all source files
for source_file in $(ls|grep '\.c$'); do
# preprocess all source files
for source_file in $(ls|grep '\.c$'); do
@@
-47,7
+47,7
@@
for source_file in $(ls|grep '\.c$'); do
source_name="$(sed 's|\.c$||' <<< "$source_file")"
# do our own preprocessing
source_name="$(sed 's|\.c$||' <<< "$source_file")"
# do our own preprocessing
- echo '#include "../
lib
jh.h"' > "gen/realc/$source_name.c"
+ echo '#include "../jh.h"' > "gen/realc/$source_name.c"
cat "$source_file" |
grep -v '^PUBLIC_CONST ' |
cat "$source_file" |
grep -v '^PUBLIC_CONST ' |
@@
-79,4
+79,4
@@
done
# ... and link!
cd gen/obj
$CC -shared -Wl,-soname,libjh.so -o ../libjh.so $(ls)
# ... and link!
cd gen/obj
$CC -shared -Wl,-soname,libjh.so -o ../libjh.so $(ls)
-cd ../..
\ No newline at end of file
+cd ../..