ref: e043e6aa574967384504a019ccfc1bb61fe570dc
parent: 02362a2f2130ccec1d17f587c55952f8ab3b635e
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Nov 27 14:26:17 EST 2015
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
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
# scc - Suckless C Compiler
+.POSIX:
include config.mk
@@ -16,4 +17,3 @@
(cd $$i; ${MAKE} $(MAKEFLAGS) $@ || exit); \
done;
-.POSIX:
--- 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 @@
all: cc1
-.POSIX:
$(OBJS) : cc1.h ../inc/cc.h ../inc/sizes.h arch/$(ARCH)/arch.h
--- a/cc2/Makefile
+++ b/cc2/Makefile
@@ -1,3 +1,5 @@
+.POSIX:
+
include ../config.mk
OBJS = main.o parser.o cgen.o code.o optm.o peep.o
@@ -4,7 +6,6 @@
all: cc2
-.POSIX:
$(OBJS): ../inc/cc.h ../inc/sizes.h cc2.h
main.o: error.h