Makefile 695 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # src/Makefile
  3. #
  4. # This library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Lesser General Public
  6. # License as published by the Free Software Foundation version 2.1
  7. # of the License.
  8. #
  9. # Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
  10. #
  11. ifeq ($(shell [ ! -r ../Makefile.opts ] && echo 1),)
  12. include ../Makefile.opts
  13. endif
  14. LDFLAGS += -L../lib -lnl ../src/utils.o
  15. CIN := $(wildcard test-*.c)
  16. TOOLS := $(CIN:%.c=%)
  17. all: $(TOOLS)
  18. $(TOOLS): ../src/utils.o
  19. test-%: test-%.c
  20. @echo " LD $@"; \
  21. $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
  22. clean:
  23. @echo " CLEAN src"; \
  24. rm -f $(TOOLS)
  25. distclean: clean
  26. install:
  27. @true
  28. include ../Makefile.rules