Makefile 386 B

12345678910111213141516171819202122
  1. tripl-objs = main.o tripl.o error.o klist.o
  2. tripl-out = tripl
  3. CFLAGS = -Wall -Werror -Iinclude -g -ldl
  4. all: $(tripl-objs)
  5. @$(MAKE) -C arch/
  6. @$(CC) $(tripl-objs) -o $(tripl-out) -Larch -larch -ldl
  7. @echo "tripl is ready. "
  8. %.o: %.c
  9. @$(CC) -c $*.c $(CFLAGS)
  10. @echo -e "\tCC\t\t\t$*.c"
  11. .PHONY clean:
  12. @$(RM) -f $(tripl-objs) $(tripl-out)
  13. @$(MAKE) -C arch/ clean