NetBSD/sys/arch/news68k/stand/common/Makefile

55 lines
960 B
Makefile
Raw Normal View History

2001-01-30 15:48:34 +03:00
# $NetBSD: Makefile,v 1.3 2001/01/30 12:48:34 tsutsui Exp $
1999-12-09 17:53:00 +03:00
S= ${.CURDIR}/../../../..
MKMAN= no
CFLAGS= -Os -Wall
2001-01-30 15:48:34 +03:00
CPPFLAGS+= -D_STANDALONE
1999-12-09 17:53:00 +03:00
CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I.
AFLAGS= -D_LOCORE
CLEANFILES+= machine m68k
1999-12-09 17:53:00 +03:00
.BEGIN: machine m68k
.NOPATH: machine m68k
realdepend realall: machine m68k
1999-12-09 17:53:00 +03:00
machine::
1999-12-09 17:53:00 +03:00
-rm -f $@
ln -s ${S}/arch/${MACHINE}/include $@
m68k::
1999-12-09 17:53:00 +03:00
-rm -f $@
ln -s ${S}/arch/m68k/include $@
${OBJS}: machine m68k
1999-12-09 17:53:00 +03:00
### find out what to use for libkern
KERN_AS= library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN= ${KERNLIB}
### find out what to use for libz
Z_AS= library
.include "${S}/lib/libz/Makefile.inc"
LIBZ= ${ZLIB}
### find out what to use for libsa
SA_AS= library
SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
realall: ${LIBS}
1999-12-09 17:53:00 +03:00
cleandir distclean: cleanlibdir
cleanlibdir:
-rm -rf lib
.include <bsd.prog.mk>