Home | History | Annotate | Line # | Download | only in zbsdmod
Makefile revision 1.10.18.1
      1  1.10.18.1    martin #	$NetBSD: Makefile,v 1.10.18.1 2020/04/13 08:04:13 martin Exp $
      2        1.6    nonaka 
      3        1.6    nonaka WARNS?=	4
      4        1.1     peter 
      5       1.10  christos .include <bsd.init.mk>
      6       1.10  christos 
      7        1.1     peter S=	${.CURDIR}/../../../..
      8        1.1     peter 
      9        1.1     peter OBJS=	zbsdmod.o
     10        1.1     peter SRCS=	zbsdmod.c
     11        1.6    nonaka NOMAN=	# defined
     12        1.1     peter 
     13  1.10.18.1    martin OBJCOPY_FLAGS=			\
     14  1.10.18.1    martin 	-R .debug_abbrev	\
     15  1.10.18.1    martin 	-R .debug_aranges	\
     16  1.10.18.1    martin 	-R .debug_info		\
     17  1.10.18.1    martin 	-R .debug_line		\
     18  1.10.18.1    martin 	-R .debug_loc		\
     19  1.10.18.1    martin 	-R .debug_ranges	\
     20  1.10.18.1    martin 	-R .debug_str		\
     21  1.10.18.1    martin 	-R .eh_frame
     22  1.10.18.1    martin 
     23        1.2    nonaka realall: ${OBJS}
     24  1.10.18.1    martin 	${OBJCOPY} ${OBJCOPY_FLAGS} ${.OBJDIR}/zbsdmod.o
     25        1.1     peter 
     26        1.5    nonaka .include <bsd.klinks.mk>
     27        1.1     peter .include <bsd.prog.mk>
     28        1.1     peter 
     29        1.1     peter afterinstall:
     30        1.3        he 	${INSTALL_FILE} ${INSTALL_COPY} -o root -g wheel -m 644 \
     31        1.1     peter 		${OBJS} ${DESTDIR}/${BINDIR}
     32        1.1     peter 
     33        1.6    nonaka CPUFLAGS=
     34  1.10.18.1    martin DBG=		-Os
     35        1.6    nonaka CFLAGS+=	-fno-strict-aliasing
     36  1.10.18.1    martin CFLAGS+=	-ffreestanding -nostdinc
     37  1.10.18.1    martin CFLAGS+=	${ARM_APCS_FLAGS} -mcpu=xscale
     38  1.10.18.1    martin CPPFLAGS+=	-DMACHINE=\"${MACHINE}\" -DUTS_RELEASE=\"2.4.20\"
     39  1.10.18.1    martin CPPFLAGS+=	-D_STANDALONE
     40        1.1     peter CPPFLAGS+=	-I${.OBJDIR} -I${S}
     41        1.1     peter 
     42        1.2    nonaka release: check_RELEASEDIR
     43        1.2    nonaka 	${HOST_INSTALL_FILE} -m ${NONBINMODE} ${OBJS} \
     44  1.10.18.1    martin 	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation
     45