A3 🎉
This commit is contained in:
23
A2/Makefile
Normal file
23
A2/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
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
|
Reference in New Issue
Block a user