Makefile.am 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright (C) 2012 Anders Sundman <anders@4zm.org>
  2. #
  3. # This file is part of mfterm.
  4. #
  5. # mfterm is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU 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. # mfterm 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 General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with mfterm. If not, see <http://www.gnu.org/licenses/>.
  17. AM_CFLAGS = -g -Wall -Wconversion -std=c99 -Werror
  18. SUBDIRS = .
  19. bin_PROGRAMS = mfterm
  20. mfterm_SOURCES = \
  21. mfterm.h mfterm.c \
  22. term_cmd.h term_cmd.c \
  23. util.h util.c \
  24. tag.h tag.c \
  25. mifare.h mifare.c \
  26. mifare_ctrl.h mifare_ctrl.c \
  27. dictionary.h dictionary.c \
  28. spec_syntax.h spec_syntax.c \
  29. mac.h mac.c
  30. mfterm_LDADD = libdp.a libsp.a -lreadline -lnfc -lcrypto
  31. man1_MANS = mfterm.man
  32. # We create two convenience libraries fot the parser targets. This is
  33. # to allow us to use different flags (since automake doesn't support
  34. # per file, but only per target flags).
  35. noinst_LIBRARIES = libdp.a libsp.a
  36. libdp_a_SOURCES = dictionary_parser.l
  37. libdp_a_LFLAGS = --prefix=dp_ -o$(LEX_OUTPUT_ROOT).c
  38. libdp_a_CFLAGS = -g -std=c99 -Wall -Wno-unused-function -Wno-unused-but-set-variable -Wno-implicit-function-declaration
  39. libsp_a_SOURCES = spec_tokenizer.l spec_parser.y
  40. libsp_a_LFLAGS = --prefix=sp_ -o$(LEX_OUTPUT_ROOT).c
  41. libsp_a_YFLAGS = --name-prefix=sp_ -d
  42. libsp_a_CFLAGS = -g -std=c99 -Wall -Wno-unused-function -Wno-unused-but-set-variable -Wno-implicit-function-declaration
  43. BUILT_SOURCES = libsp_a-spec_parser.h