summaryrefslogtreecommitdiff
path: root/sys/arch/palm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/palm')
-rw-r--r--sys/arch/palm/conf/Makefile.palm23
1 files changed, 7 insertions, 16 deletions
diff --git a/sys/arch/palm/conf/Makefile.palm b/sys/arch/palm/conf/Makefile.palm
index 51b15b0dfb2..d48253aefb2 100644
--- a/sys/arch/palm/conf/Makefile.palm
+++ b/sys/arch/palm/conf/Makefile.palm
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.palm,v 1.18 2010/05/24 17:49:37 deraadt Exp $
+# $OpenBSD: Makefile.palm,v 1.19 2010/05/24 23:19:22 deraadt Exp $
# For instructions on building kernels consult the config(8) and options(4)
# manual pages.
@@ -28,7 +28,7 @@ INCLUDES= -nostdinc -I. -I$S -I$S/arch
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D__${_mach}__
CWARNFLAGS= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wno-main -Wno-uninitialized -Wno-format \
- -Wstack-larger-than-2047 -Wvariable-decl
+ -Wstack-larger-than-2047
CMACHFLAGS= -ffreestanding -msoft-float # -march=armv4 -mtune=strongarm
CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \
@@ -43,7 +43,7 @@ CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
AFLAGS= -D_LOCORE -x assembler-with-cpp ${CMACHFLAGS}
LINKFLAGS= -T ldscript
LINKFLAGS+= --warn-common
-STRIPFLAGS= -g -X -x
+STRIPFLAGS= -g -x
.if ${IDENT:M-DDDB_STRUCT}
DB_STRUCTINFO= db_structinfo.h
@@ -120,10 +120,9 @@ vers.o: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
-
clean::
rm -f eddep *bsd *bsd.gdb tags *.[io] [a-z]*.s \
- [Ee]rrs linterrs makelinks assym.h ${DB_STRUCTINFO}
+ [Ee]rrs linterrs assym.h ${DB_STRUCTINFO}
lint:
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
@@ -133,19 +132,11 @@ lint:
tags:
@echo "see $S/kern/Makefile for tags"
-links:
- egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
- sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
- echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
- sort -u | comm -23 - dontlink | \
- sed 's,.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
- sh makelinks && rm -f dontlink makelinks
-
-SRCS= ${_archdir}/${_arch}/locore.S \
- param.c ioconf.c ${CFILES} ${SFILES}
+AFILES= ${_machdir}/${_mach}/${_mach}_start.S ${_archdir}/${_arch}/locore.S
+SRCS= ${AFILES} param.c ioconf.c ${CFILES} ${SFILES}
depend:: .depend
.depend: ${SRCS} assym.h param.c ${DB_STRUCTINFO}
- ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${_archdir}/${_arch}/locore.S
+ ${MKDEP} ${AFLAGS} ${CPPFLAGS} ${AFILES}
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
.if !empty(SFILES)
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}