saus/Makefile
Nicolás Ortega Froysa 41fd95fde9 Initial commit.
2019-03-19 11:49:13 +01:00

24 lines
370 B
Makefile

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)