External, Non-PPA KXStudio Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
884B

  1. #!/usr/bin/make -f
  2. include /usr/share/dpkg/architecture.mk
  3. FLAGS = -O3 -fPIC -DPIC -fvisibility=hidden -fdata-sections -ffunction-sections -DNDEBUG
  4. ifeq ($(DEB_HOST_ARCH),armhf)
  5. FLAGS += -march=armv7ve -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4
  6. else ifeq ($(DEB_HOST_ARCH),arm64)
  7. FLAGS += -march=armv8-a -mcpu=cortex-a53
  8. else
  9. FLAGS += -mtune=generic -msse -msse2 -mfpmath=sse
  10. endif
  11. ifeq ($(KXSTUDIO_NO_FASTMATH),)
  12. FLAGS += -ffast-math
  13. endif
  14. export CFLAGS=$(FLAGS)
  15. export CXXFLAGS=$(FLAGS) -fvisibility-inlines-hidden
  16. export CPPFLAGS=
  17. export LDFLAGS=-Wl,-O1,--as-needed,--no-undefined,--gc-sections,--strip-all
  18. export PATH:=/opt/kxstudio/bin:$(PATH)
  19. export PKG_CONFIG_PATH=/opt/kxstudio/lib/pkgconfig
  20. ifeq ($(KXSTUDIO_EXPLICIT_PATH_INCLUDE),y)
  21. export CFLAGS += -I/opt/kxstudio/include
  22. export CXXFLAGS += -I/opt/kxstudio/include
  23. export LDFLAGS += -L/opt/kxstudio/lib
  24. endif