commit e043e6aa574967384504a019ccfc1bb61fe570dc
parent 02362a2f2130ccec1d17f587c55952f8ab3b635e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 27 Nov 2015 19:26:17 +0100
Move .POSIX to the beginning of Makefiles
Evan Gates noted this isuue, which can be read in [1]
[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html#tag_20_76_13_04
Diffstat:
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,4 +1,5 @@
# scc - Suckless C Compiler
+.POSIX:
include config.mk
@@ -16,4 +17,3 @@ all clean:
(cd $$i; ${MAKE} $(MAKEFLAGS) $@ || exit); \
done;
-.POSIX:
diff --git a/cc1/Makefile b/cc1/Makefile
@@ -1,3 +1,5 @@
+.POSIX:
+
include ../config.mk
OBJS = types.o decl.o lex.o error.o symbol.o main.o expr.o \
@@ -5,7 +7,6 @@ OBJS = types.o decl.o lex.o error.o symbol.o main.o expr.o \
all: cc1
-.POSIX:
$(OBJS) : cc1.h ../inc/cc.h ../inc/sizes.h arch/$(ARCH)/arch.h
diff --git a/cc2/Makefile b/cc2/Makefile
@@ -1,10 +1,11 @@
+.POSIX:
+
include ../config.mk
OBJS = main.o parser.o cgen.o code.o optm.o peep.o
all: cc2
-.POSIX:
$(OBJS): ../inc/cc.h ../inc/sizes.h cc2.h
main.o: error.h