1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/sf/Makefile

33 lines
751 B
Makefile
Raw Normal View History

2015-09-19 21:33:04 -04:00
include ../build-aux/platform.mak
include ../build-aux/compiler.mak
include ../build-aux/version.mak
include ../build-aux/dirs.mak
OPTLEVEL?=$(DEFAULT_OPTLEVEL)
CFLAGS?=$(OPTLEVEL)
CFLAGS:=$(CFLAGS) -Wall -Wextra
CPPFLAGS:=$(CPPFLAGS) -DVERSIONSTR=\"$(VERSION)\"
BINARY:=sf
all: $(BINARY)
.PHONY: all install clean
install: all
mkdir -p $(DESTDIR)$(BINDIR)
install $(BINARY) $(DESTDIR)$(BINDIR)
install sfnc $(DESTDIR)$(BINDIR)
install sfncd $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(MANDIR)/man1
install sf.1 $(DESTDIR)$(MANDIR)/man1/sf.1
install sfnc.1 $(DESTDIR)$(MANDIR)/man1/sfnc.1
install sfncd.1 $(DESTDIR)$(MANDIR)/man1/sfncd.1
$(BINARY): $(BINARY).c
$(CC) $(CFLAGS) $(CPPFLAGS) -std=gnu11 $< -o $@
clean:
rm -f $(BINARY) *.o