diff options
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile new file mode 100644 index 0000000..22a5469 --- /dev/null +++ b/tests/Makefile @@ -0,0 +1,15 @@ +CFLAGS = -Wall +LDFLAGS = -lpthread +CC = gcc +SOURCES = $(wildcard *.c) +BINARIES = $(patsubst %.c,%,$(SOURCES)) + +all: $(BINARIES) + +%: %.c + $(CC) $(CFLAGS) $(LDFLAGS) $< -o $(patsubst %.c,%,$<) + +clean: + rm -f $(BINARIES) + +.PHONY: all install clean |