gen-makefile 883 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. echo Generating src/Makefile.am ...
  3. cd src
  4. inc_current='$(srcdir)'
  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 \$(LOVE_INCLUDES) \$(FILE_OFFSET)
  8. AUTOMAKE_OPTIONS = subdir-objects
  9. SUBDIRS =
  10. if LOVE_BUILD_EXE
  11. # LÖVE executable
  12. bin_PROGRAMS = love
  13. #love_LDFLAGS =
  14. love_LDADD = liblove.la
  15. love_SOURCES = love.cpp
  16. endif
  17. # libLÖVE
  18. lib_LTLIBRARIES = liblove.la
  19. liblove_la_LDFLAGS = -module -export-dynamic \$(LDFLAGS)
  20. liblove_la_SOURCES = \\" > Makefile.am.tmp
  21. find . \( \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.h" -o -iname "*.lch" \) \) -exec echo '{}' \\ \; >> Makefile.am.tmp
  22. cat Makefile.am.tmp | grep -v -f"../platform/unix/exclude" | head -c -3 > Makefile.am
  23. #head -c -3 Makefile.am.tmp > Makefile.am
  24. rm Makefile.am.tmp
  25. cd ..
  26. echo src/Makefile.am is updated! \^.^