configure 639 B

1234567891011121314151617181920212223242526272829303132
  1. #! /bin/sh
  2. CC=${CC:-\$(CROSS_COMPILE)gcc}
  3. CFLAGS=${CFLAGS:--O2 -ggdb -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -ansi}
  4. LDFLAGS=${LDFLAGS:--Wl,--no-undefined -Wl,--as-needed}
  5. GST_CFLAGS=$(pkg-config --cflags gstreamer-0.10)
  6. GST_LIBS=$(pkg-config --libs gstreamer-0.10)
  7. DSP_API=${DSP_API:-2}
  8. SN_API=${SN_API:-2}
  9. dspdir=${dspdir:-"/lib/dsp"}
  10. prefix=${prefix:-"/usr"}
  11. cat > Makefile.conf <<EOF
  12. CROSS_COMPILE ?= ${CROSS_COMPILE}
  13. CC := ${CC}
  14. CFLAGS := ${CFLAGS}
  15. LDFLAGS := ${LDFLAGS}
  16. GST_CFLAGS := ${GST_CFLAGS}
  17. GST_LIBS := ${GST_LIBS}
  18. DSP_API := ${DSP_API}
  19. SN_API := ${SN_API}
  20. dspdir := ${dspdir}
  21. prefix := ${prefix}
  22. EOF