~ecs/tbrace

tbrace/Makefile -rw-r--r-- 304 bytes
f007a19d — Eyal Sawady Makefile: rewrite 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CC ?= cc
CFLAGS ?= -static -Wall -Wextra -pedantic -O2 -ansi -Werror -pedantic-errors
OUT ?= tbrace

all: $(OUT)

$(OUT): main.o config.h helpers.o state.o update.o
	$(CC) $(CFLAGS) -o $(OUT) main.o state.o helpers.o update.o

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

clean:
	rm -f $(OUT) *.o

.PHONY: clean