Updated Makefile to use CFLAGS

This commit is contained in:
L. Bradley LaBoon 2016-01-14 19:43:14 -05:00
parent a1e80eb09a
commit 1dad5cda13

View File

@ -3,14 +3,14 @@ DESTDIR ?=
PREFIX ?= /usr/local
# Build flags
FLAGS = -std=gnu99
OPTS = -std=gnu99
# Build rules
all: backly
.PHONY: all install clean
backly: backly.c Makefile
gcc $(FLAGS) -o backly backly.c
gcc $(OPTS) $(CFLAGS) -o backly backly.c
install: backly
install -Dm 0755 backly $(DESTDIR)/$(PREFIX)/bin/backly