commit e043e6aa574967384504a019ccfc1bb61fe570dc
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Nov 27 19:26:17 2015 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Fri Nov 27 19:26:17 2015 +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

diff --git a/Makefile b/Makefile
index f3df552..5a23e20 100644
--- 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
index 3ad18ee..02938e6 100644
--- 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
index dbb1e52..e6f7eeb 100644
--- 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

Reply via email to