summaryrefslogtreecommitdiff
path: root/tests/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/Makefile')
-rw-r--r--tests/src/Makefile22
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)