eqemu

view libs/libimago/configure @ 12:2656099aff12

added copyright notices and license
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 18 Jul 2014 07:04:21 +0300
parents
children
line source
1 #!/bin/sh
3 gen_module_init()
4 {
5 # collect all src/file_whatever.c files
6 modules=`ls src/file_*.c 2>/dev/null | sort | sed 's/src\/file_//' | sed 's/\.c//'`
8 echo "/* this file is generated by $0, do not edit */"
9 for m in $modules; do
10 echo "int img_register_$m();"
11 done
13 echo
14 echo 'void img_modules_init(void)'
15 echo '{'
17 for m in $modules; do
18 echo " img_register_$m();"
19 done
21 echo '}'
22 }
24 gen_module_init >src/modules.c
26 echo 'PREFIX = /usr/local' >Makefile
27 cat Makefile.in >>Makefile