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.

21 lines
501 B

13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
  1. # Makefile for symlinks
  2. CC := gcc
  3. CFLAGS += $(shell getconf LFS_CFLAGS 2>/dev/null)
  4. OWNER = root
  5. GROUP = root
  6. MANDIR = /usr/man/man8/symlinks.8
  7. BINDIR = /usr/local/bin
  8. .PHONY: all
  9. all: symlinks
  10. symlinks: symlinks.c
  11. $(CC) -Wall -Wstrict-prototypes -O2 $(CFLAGS) -o symlinks symlinks.c
  12. install: all symlinks.8
  13. $(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 755 symlinks $(BINDIR)
  14. $(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 644 symlinks.8 $(MANDIR)
  15. .PHONY: clean
  16. clean:
  17. rm -f symlinks *.o core