configure_target.sh.include 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright (c) 2019 Clementine Computing LLC.
  2. #
  3. # This file is part of PopuFare.
  4. #
  5. # PopuFare is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU Affero General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # PopuFare is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU Affero General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License
  16. # along with PopuFare. If not, see <https://www.gnu.org/licenses/>.
  17. universal_ccopts="-Wall"
  18. case $target in
  19. viper)
  20. echo "Building for Arcom Viper target."
  21. target_cc="arm-linux-gcc"
  22. # target_cc="gcc -b arm"
  23. target_ccopts="$universal_ccopts -g -O2 -D TARGET_VIPER"
  24. #target_ccopts="$universal_ccopts -g -D TARGET_VIPER"
  25. target_ok="$target"
  26. ;;
  27. native)
  28. echo "Building for native target."
  29. target_cc="gcc"
  30. target_ccopts="$universal_ccopts -g -D TARGET_DEVEL_DESKTOP"
  31. target_ok="$target"
  32. ;;
  33. esac
  34. export target_ok
  35. export target_cc
  36. export target_ccopts