brickware/marrow.git - 15c94e6

(4 months ago)commit 15c94e6: marrow-auth - working prototype

Back

Makefile

raw

CC = cc
CFLAGS = -O0 -pipe -std=c11 -Wall -Wextra -pedantic -Wstrict-overflow -g \
	-Wno-strict-aliasing
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin

TARGETS = marrow-auth marrow-shell

all: $(TARGETS)

marrow-auth: marrow-auth.c
	$(CC) $(CFLAGS) -o $@ $<

marrow-shell: marrow-shell.c
	$(CC) $(CFLAGS) -o $@ $<

install: $(TARGETS)
	install -d $(DESTDIR)$(BINDIR)
	install -m 755 marrow-auth $(DESTDIR)$(BINDIR)/
	install -m 755 marrow-shell $(DESTDIR)$(BINDIR)/

clean:
	rm -f $(TARGETS)

.PHONY: all install clean