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
|
|
|
|
|
2000-01-23 20:04:03 +03:00
|
|
|
CLEANFILES+= machine m68k
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2000-01-23 20:04:03 +03:00
|
|
|
.BEGIN: machine m68k
|
|
|
|
.NOPATH: machine m68k
|
|
|
|
realdepend realall: machine m68k
|
1999-12-09 17:53:00 +03:00
|
|
|
|
2000-01-23 20:04:03 +03:00
|
|
|
machine::
|
1999-12-09 17:53:00 +03:00
|
|
|
-rm -f $@
|
|
|
|
ln -s ${S}/arch/${MACHINE}/include $@
|
|
|
|
|
2000-01-23 20:04:03 +03:00
|
|
|
m68k::
|
1999-12-09 17:53:00 +03:00
|
|
|
-rm -f $@
|
|
|
|
ln -s ${S}/arch/m68k/include $@
|
|
|
|
|
2000-01-23 20:04:03 +03:00
|
|
|
${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}
|
|
|
|
|
2000-01-23 20:04:03 +03:00
|
|
|
realall: ${LIBS}
|
1999-12-09 17:53:00 +03:00
|
|
|
|
|
|
|
cleandir distclean: cleanlibdir
|
|
|
|
|
|
|
|
cleanlibdir:
|
|
|
|
-rm -rf lib
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|