summaryrefslogtreecommitdiff
path: root/spmc/Makefile
blob: 7ce174928963ed3494da29b622680c298e6e7934 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS += $(INCLUDEFLAGS) -D_REENTRANT -ggdb3 -Wall -pedantic -Wextra -Wsign-conversion -Wno-unused-parameter $(shell pkg-config ncurses --cflags) -std=gnu99

LDFLAGS = $(shell pkg-config ncurses --libs)

.PHONY: all clean


all: spmc

spmc: spmc.o
	$(CC) $^ -o $@ $(LDFLAGS)

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

clean:
	$(RM) spmc