Makefile 326 B

1234567891011121314151617
  1. CFLAGS = -std=gnu11 -Wall -Wextra -Werror -I../include -g
  2. targets = install adduser
  3. all: $(targets)
  4. install: install.c
  5. @$(CC) $(CFLAGS) -o install install.c
  6. @echo -e "CC\t\t\tinstall.c"
  7. adduser: adduser.c
  8. @$(CC) $(CFLAGS) -o adduser adduser.c
  9. @echo -e "CC\t\t\tadduser.c"
  10. .PHONY clean:
  11. $(RM) $(targets) -r