Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # meg4/platform/fbdev_alsa/Makefile
  3. #
  4. # Copyright (C) 2023 bzt
  5. #
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20. # @brief The Linux fbdev + ALSA Makefile
  21. #
  22. BACKEND=fbdev
  23. PACKAGE=Linux
  24. EMBED=1
  25. LIBS += -lm -lpthread
  26. ifneq ($(USE_INIT),)
  27. EMBED=1
  28. CFLAGS+=-DUSE_INIT=1
  29. LDFLAGS=-static
  30. ifneq ($(LANG),)
  31. CFLAGS+=-DLANG="\"$(LANG)\""
  32. endif
  33. ifneq ($(FLOPPYDEV),)
  34. CFLAGS+=-DFLOPPYDEV="\"$(FLOPPYDEV)\""
  35. endif
  36. endif
  37. ifneq ($(KBDMAP),)
  38. CFLAGS+=-DKBDMAP="\"$(KBDMAP).h\""
  39. endif
  40. include ../common.mk