diff options
author | norly <ny-git@enpas.org> | 2013-06-19 20:20:10 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2013-06-20 22:10:23 +0100 |
commit | 7f1a29e9e33059dfebdc24bb3ffaa3dac46b58f1 (patch) | |
tree | 89f3108016eb3440ec35a9b20957f46ef999cc5c /tests/src/Makefile | |
parent | c98d704a812502c34d82e34949f37c8b87ae6018 (diff) |
Automate tests
Diffstat (limited to 'tests/src/Makefile')
-rw-r--r-- | tests/src/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/src/Makefile b/tests/src/Makefile new file mode 100644 index 0000000..1a2b177 --- /dev/null +++ b/tests/src/Makefile @@ -0,0 +1,22 @@ +CFLAGS := -Wall -pedantic +EXES := putsmain putsmainsub brkmain +OBJS := puts_noarg.o puts_alternative.o puts_data.o +TARGETS := $(EXES) $(OBJS) + + +all: $(TARGETS) + + +putsmain: putsmain.c + gcc $(CFLAGS) $^ -o $@ + +putsmainsub: putsmainsub.c + gcc $(CFLAGS) $^ -o $@ + +.c.o: + gcc $(CFLAGS) -c $< -o $@ + + +.PHONY: clean +clean: + rm -f $(TARGETS) |