Makefile 430 B

123456789101112131415161718192021222324
  1. # See LICENSE file for copyright and license details.
  2. include ../config.mk
  3. LIB = ../libfn85.a
  4. TOOLS = fn85_hex
  5. all: $(TOOLS)
  6. fn85_hex: fn85_hex.c $(LIB)
  7. @$(CC) $(CFLAGS) -o fn85_hex fn85_hex.c $(LIB)
  8. install: $(TOOLS)
  9. @echo @ install tools to $(PREFIX)
  10. @mkdir -p $(PREFIX)/bin
  11. @cp $(TOOLS) $(PREFIX)/bin/
  12. uninstall:
  13. @echo @ uninstall tools from $(PREFIX)
  14. @(cd $(PREFIX)/bin && rm -f $(TOOLS))
  15. clean:
  16. @rm -f $(TOOLS)