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.

25 lines
564 B

13 years ago
13 years ago
13 years ago
13 years ago
13 years ago
  1. # Makefile for symlinks
  2. CC = gcc
  3. # append options like `-o owner -g group` here if desired
  4. INSTALL = install
  5. CFLAGS += $(shell getconf LFS_CFLAGS 2>/dev/null)
  6. PREFIX ?= /usr/local
  7. MANDIR ?= $(PREFIX)/share/man/man8
  8. BINDIR ?= $(PREFIX)/bin
  9. .PHONY: all
  10. all: symlinks
  11. symlinks: symlinks.c
  12. $(CC) -Wall -Wstrict-prototypes -O2 $(CFLAGS) -o symlinks symlinks.c
  13. install: all symlinks.8
  14. $(INSTALL) -d $(BINDIR)
  15. $(INSTALL) -m 755 symlinks $(BINDIR)
  16. $(INSTALL) -d $(MANDIR)
  17. $(INSTALL) -m 644 symlinks.8 $(MANDIR)
  18. .PHONY: clean
  19. clean:
  20. rm -f symlinks *.o core