gen-makefile 792 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. echo Generating src/Makefile.am ...
  3. cd src
  4. inc_current=.
  5. inc_modules="$inc_current/modules"
  6. inc_libraries="$inc_current/libraries"
  7. echo "AM_CPPFLAGS = -I$inc_current -I$inc_modules -I$inc_libraries -I/usr/include/AL -I/usr/include/freetype2 \$(INCLUDE_LUA) -I/usr/include/SDL \$(FILE_OFFSET)
  8. AUTOMAKE_OPTIONS = subdir-objects
  9. DEFAULT_INCLUDES =
  10. SUBDIRS =
  11. # LÖVE executable
  12. bin_PROGRAMS = love
  13. #love_LDFLAGS =
  14. #love_LDADD =
  15. love_SOURCES = \\" > Makefile.am.tmp
  16. find . \( \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.h" -o -iname "*.lch" \) \) -exec echo '{}' \\ \; >> Makefile.am.tmp
  17. cat Makefile.am.tmp | grep -v -f"../platform/unix/exclude" | head -c -3 > Makefile.am
  18. #head -c -3 Makefile.am.tmp > Makefile.am
  19. rm Makefile.am.tmp
  20. cd ..
  21. echo src/Makefile.am is updated! \^.^