gen-makefile 914 B

1234567891011121314151617181920212223242526
  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. SUBDIRS =
  10. # LÖVE executable
  11. bin_PROGRAMS = love
  12. #love_LDFLAGS =
  13. love_LDADD = liblove.la
  14. love_SOURCES = launcher.cpp
  15. # libLÖVE
  16. lib_LTLIBRARIES = liblove.la
  17. liblove_la_LDFLAGS = -module -export-dynamic \$(LDFLAGS)
  18. liblove_la_SOURCES = \\" > Makefile.am.tmp
  19. find . \( \( -iname "*.c" -o -iname "*.cpp" -o -iname "*.h" -o -iname "*.lch" \) \) -exec echo '{}' \\ \; >> Makefile.am.tmp
  20. cat Makefile.am.tmp | grep -v -f"../platform/unix/exclude" | head -c -3 > Makefile.am
  21. #head -c -3 Makefile.am.tmp > Makefile.am
  22. rm Makefile.am.tmp
  23. cd ..
  24. echo src/Makefile.am is updated! \^.^