Files
Nikolaj 282a9a0f77 :tada
2021-10-27 13:50:32 +02:00

24 lines
479 B
Makefile

CC=gcc
CFLAGS=-g -Wall -Wextra -pedantic -std=gnu99 -pthread
EXAMPLES=fibs fauxgrep fauxgrep-mt fhistogram fhistogram-mt
.PHONY: all test clean ../src.zip
all: $(TESTS) $(EXAMPLES)
job_queue.o: job_queue.c job_queue.h
$(CC) -c job_queue.c $(CFLAGS)
%: %.c job_queue.o
$(CC) -o $@ $^ $(CFLAGS)
test: $(TESTS)
@set e; for test in $(TESTS); do echo ./$$test; ./$$test; done
clean:
rm -rf $(TESTS) $(EXAMPLES) *.o core
../src.zip:
make clean
cd .. && zip src.zip -r src