Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 501 Bytes
# Makefile for symlinks
CC := gcc
CFLAGS += $(shell getconf LFS_CFLAGS 2>/dev/null)
OWNER = root
GROUP = root
MANDIR = /usr/man/man8/symlinks.8
BINDIR = /usr/local/bin
.PHONY: all
all: symlinks
symlinks: symlinks.c
$(CC) -Wall -Wstrict-prototypes -O2 $(CFLAGS) -o symlinks symlinks.c
install: all symlinks.8
$(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 755 symlinks $(BINDIR)
$(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 644 symlinks.8 $(MANDIR)
.PHONY: clean
rm -f symlinks *.o core
Something went wrong with that request. Please try again.