diff options
author | Michael Czigler <37268479+mcpcpc@users.noreply.github.com> | 2020-09-22 07:13:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 07:13:58 -0400 |
commit | 9de840a9f9e164bc4fe6b66da116b576348094eb (patch) | |
tree | 1bd43c585607cf8aed6809cf0f3bcf3158390aec | |
parent | bumper version to 0.1.0 (diff) | |
parent | remove `-o` from CC command line (diff) | |
download | kirc-9de840a9f9e164bc4fe6b66da116b576348094eb.tar.gz kirc-9de840a9f9e164bc4fe6b66da116b576348094eb.tar.bz2 kirc-9de840a9f9e164bc4fe6b66da116b576348094eb.tar.xz kirc-9de840a9f9e164bc4fe6b66da116b576348094eb.tar.zst kirc-9de840a9f9e164bc4fe6b66da116b576348094eb.zip |
Merge pull request #30 from Humm42/master
make Makefile compliant
-rw-r--r-- | Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,18 +1,20 @@ -CFLAGS += -std=c99 -Wall -Wextra -pedantic -Wold-style-declaration -PREFIX ?= /usr -BINDIR ?= $(PREFIX)/bin -CC ?= gcc +.POSIX: + +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin all: kirc kirc: kirc.o Makefile - $(CC) $(CFLAGS) -o $@ $@.o $(LDFLAGS) + $(CC) -o kirc kirc.o $(LDFLAGS) .c.o: - $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + $(CC) $(CPPFLAGS) $(CFLAGS) -c $< install: all - install -Dm755 kirc $(DESTDIR)$(BINDIR)/kirc + mkdir -p $(DESTDIR)$(BINDIR) + cp -f kirc $(DESTDIR)$(BINDIR) + chmod 755 $(DESTDIR)$(BINDIR)/kirc uninstall: rm -f $(DESTDIR)$(BINDIR)/kirc |