summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/csu/alpha/Makefile8
-rw-r--r--lib/csu/amd64/Makefile7
-rw-r--r--lib/csu/i386-elf/Makefile7
3 files changed, 9 insertions, 13 deletions
diff --git a/lib/csu/alpha/Makefile b/lib/csu/alpha/Makefile
index 1212b44..0ee91e0 100644
--- a/lib/csu/alpha/Makefile
+++ b/lib/csu/alpha/Makefile
@@ -1,6 +1,6 @@
-#
# $FreeBSD$
-#
+
+.PATH: ${.CURDIR}/../common
SRCS= crt1.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
@@ -12,11 +12,9 @@ NOPIC= true
NOPROFILE= true
INTERNALLIB= true
-.PATH: ${.CURDIR}/../common
-
all: ${OBJS} ${SOBJS}
-gcrt1.o: crt1.c
+gcrt1.o: crt1.c
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
realinstall:
diff --git a/lib/csu/amd64/Makefile b/lib/csu/amd64/Makefile
index 2082a70..cb1bc63 100644
--- a/lib/csu/amd64/Makefile
+++ b/lib/csu/amd64/Makefile
@@ -1,6 +1,6 @@
-#
# $FreeBSD$
-#
+
+.PATH: ${.CURDIR}/../common
SRCS= crt1.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
@@ -13,11 +13,10 @@ NOPIC= true
NOPROFILE= true
INTERNALLIB= true
-.PATH: ${.CURDIR}/../common
all: ${OBJS} ${SOBJS}
-gcrt1.o: crt1.c
+gcrt1.o: crt1.c
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
realinstall:
diff --git a/lib/csu/i386-elf/Makefile b/lib/csu/i386-elf/Makefile
index 2082a70..cb1bc63 100644
--- a/lib/csu/i386-elf/Makefile
+++ b/lib/csu/i386-elf/Makefile
@@ -1,6 +1,6 @@
-#
# $FreeBSD$
-#
+
+.PATH: ${.CURDIR}/../common
SRCS= crt1.c crti.S crtn.S
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
@@ -13,11 +13,10 @@ NOPIC= true
NOPROFILE= true
INTERNALLIB= true
-.PATH: ${.CURDIR}/../common
all: ${OBJS} ${SOBJS}
-gcrt1.o: crt1.c
+gcrt1.o: crt1.c
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
realinstall:
OpenPOWER on IntegriCloud