25 lines
311 B
Bash
25 lines
311 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
objroot=$1
|
||
|
|
||
|
cat <<EOF
|
||
|
#ifndef JEMALLOC_H_
|
||
|
#define JEMALLOC_H_
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
EOF
|
||
|
|
||
|
for hdr in jemalloc_macros.h jemalloc_protos.h jemalloc_mangle.h ; do
|
||
|
cat "${objroot}include/jemalloc/${hdr}"
|
||
|
echo
|
||
|
done
|
||
|
|
||
|
cat <<EOF
|
||
|
#ifdef __cplusplus
|
||
|
};
|
||
|
#endif
|
||
|
#endif /* JEMALLOC_H_ */
|
||
|
EOF
|