summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0370909..15ef423 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+.POSIX:
+
strerror: strerror.c strerror.h
$(CC) $(CFLAGS) -o $@ strerror.c
@@ -7,3 +9,6 @@ strerror.h: errlist Makefile
printf 'const char *errlist[] = {\n' >> $@
awk '{printf("#ifdef %s\n\t[%s] = \"%s\",\n#endif\n", $$0, $$0, $$0);}' errlist >> $@
printf '};\n\n#endif\n' >> $@
+
+clean:
+ rm -f strerror *.o