Makefile 575 B

12345678910111213141516171819202122232425262728293031
  1. tripl-objs = main.o tripl.o error.o klist.o
  2. tripl-out = tripl
  3. CFLAGS = -Wall -Werror -Iinclude -g -ldl
  4. ifeq ($(install-dir),)
  5. install-dir = /usr/bin
  6. endif
  7. all : $(tripl-objs)
  8. @scripts/mkconfig.py
  9. @$(MAKE) -C arch/
  10. @$(CC) $(tripl-objs) -o $(tripl-out) -Larch -larch -ldl
  11. @echo "tripl is ready. "
  12. install : $(tripl-out)
  13. @install $(tripl-out) $(install-dir)
  14. %.o : %.c
  15. @$(CC) -c $*.c $(CFLAGS)
  16. @echo -e "\tCC\t\t\t$*.c"
  17. .PHONY clean:
  18. @$(RM) -f $(tripl-objs) $(tripl-out)
  19. @$(MAKE) -C arch/ clean
  20. startbeta:
  21. touch "betatest-`date +\"%Y:%m:%d\"`"