You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 272B

1234567891011121314151617181920
  1. CC=gcc
  2. CFLAGS=-I. -Wall -std=gnu99 -Wno-endif-labels
  3. DEPS =
  4. OBJ = minsh.o
  5. all: $(OBJ)
  6. %.o: %.c $(DEPS)
  7. $(CC) -o $@ $< $(CFLAGS)
  8. install:
  9. install -s $(OBJ) /usr/bin/minsh
  10. .PHONY : clean
  11. clean:
  12. rm $(OBJ)
  13. .PHONY : test-install
  14. test-install:
  15. install -s $(OBJ) minsh