xref: /netbsd/sys/arch/news68k/stand/common/Makefile (revision bf9ec67e)
1#	$NetBSD: Makefile,v 1.5 2002/04/13 17:48:10 tsutsui Exp $
2
3S= ${.CURDIR}/../../../..
4
5NOMAN= # defined
6
7CFLAGS= -Os -Wall
8
9CPPFLAGS+= -D_STANDALONE
10CPPFLAGS+= -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET
11CPPFLAGS+= -nostdinc -I${.OBJDIR} -I${S} -I.
12AFLAGS= -D_LOCORE
13
14CLEANFILES+= machine m68k
15
16.BEGIN: machine m68k
17.NOPATH: machine m68k
18realdepend realall: machine m68k
19
20machine::
21	-rm -f $@
22	ln -s ${S}/arch/${MACHINE}/include $@
23
24m68k::
25	-rm -f $@
26	ln -s ${S}/arch/m68k/include $@
27
28${OBJS}: machine m68k
29
30### find out what to use for libkern
31KERN_AS= library
32.include "${S}/lib/libkern/Makefile.inc"
33LIBKERN= ${KERNLIB}
34
35### find out what to use for libz
36Z_AS= library
37.include "${S}/lib/libz/Makefile.inc"
38LIBZ= ${ZLIB}
39
40### find out what to use for libsa
41SA_AS= library
42SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
43.include "${S}/lib/libsa/Makefile.inc"
44LIBSA= ${SALIB}
45
46LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
47
48realall: ${LIBS}
49
50cleandir distclean: cleanlibdir
51
52cleanlibdir:
53	-rm -rf lib
54
55.include <bsd.prog.mk>
56