aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 79a424302a6025a8013d9914443331129648e0d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CC=cc
CFLAGS+=-std=c99 -pedantic -Wall -Wextra -O2
LDFLAGS+=-lX11 -lxcb

TSAR_OUT=tsarbar

HEADERS=
SRC=src/tsar.c

.PHONY: default run clean

default: $(TSAR_OUT)

# Project should be small enough that we should be able to ignore incremental
# compilation
$(TSAR_OUT): $(SRC)
	$(CC) $(SRC) -o $(TSAR_OUT) $(CFLAGS) $(LDFLAGS)

%.c:

run: $(TSAR_OUT)
	./$(TSAR_OUT)

clean:
	rm $(TSAR_OUT)