saus/Makefile

24 lines
370 B
Makefile
Raw Normal View History

2019-03-19 10:49:13 +00:00
CC=gcc
DEBUG=0
INCFLAGS=`pkg-config jack --cflags`
LDFLAGS=`pkg-config jack --libs` -lreadline
CFLAGS=$(INCFLAGS) -std=c99 -Wall -Wextra -Wfatal-errors -Werror
OBJS=src/main.o
ifeq ($(DEBUG),1)
CFLAGS+=-g -O0 -DDEBUG
else
CFLAGS+=-O2 -DNDEBUG
endif
%.o:%.c
$(CC) -c -o $@ $< $(CFLAGS)
saus: $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)
.PHONY: clean
clean:
rm -f $(OBJS)