Files
love/platform/unix/gen-makefile
T
2009-11-06 17:28:27 +01:00

23 lines
743 B
Bash

#!/bin/bash
echo Generating src/Makefile.am ...
cd src
inc_current=.
inc_modules="$inc_current/modules"
echo "AM_CPPFLAGS = -I$inc_current -I$inc_modules -I/usr/include/AL -I/usr/include/freetype2 \$(INCLUDE_LUA) -I/usr/include/SDL -D_FILE_OFFSET_BITS=64
AUTOMAKE_OPTIONS = subdir-objects
DEFAULT_INCLUDES =
SUBDIRS =
# LÖVE executable
bin_PROGRAMS = love
#love_LDFLAGS =
#love_LDADD =
love_SOURCES = \\" > Makefile.am.tmp
find . \( \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.h" -o -iname "*.lch" \) \) -exec echo '{}' \\ \; >> Makefile.am.tmp
cat Makefile.am.tmp | grep -v -f"../platform/unix/exclude" | head -c -3 > Makefile.am
#head -c -3 Makefile.am.tmp > Makefile.am
rm Makefile.am.tmp
cd ..
echo src/Makefile.am is updated! \^.^