Cross Reference: Makefile
xref: /src/sys/arch/news68k/stand/common/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/sys/arch/news68k/stand/common/
Makefile revision 1.7
1#	$NetBSD: Makefile,v 1.7 2003/11/21 19:39:19 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.
12CPPFLAGS+= -D__daddr_t=int32_t
13AFLAGS= -D_LOCORE
14
15CLEANFILES+= machine m68k
16
17.PHONY: machine-links
18beforedepend: machine-links
19machine-links:
20	-rm -f machine
21	ln -s ${S}/arch/${MACHINE}/include machine
22	-rm -f ${MACHINE_ARCH}
23	ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
24
25.include <bsd.prog.mk>
26
27### find out what to use for libkern
28KERN_AS= library
29.include "${S}/lib/libkern/Makefile.inc"
30LIBKERN= ${KERNLIB}
31
32### find out what to use for libz
33Z_AS= library
34.include "${S}/lib/libz/Makefile.inc"
35LIBZ= ${ZLIB}
36
37### find out what to use for libsa
38SA_AS= library
39SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_USE_LOADFILE=yes
40.include "${S}/lib/libsa/Makefile.inc"
41LIBSA= ${SALIB}
42
43LIBS= ${LIBSA} ${LIBZ} ${LIBKERN}
44
45realall: machine-links ${LIBS}
46
47cleandir distclean: cleanlibdir
48
49cleanlibdir:
50	-rm -rf lib
51

Indexes created Wed Dec 17 03:09:36 GMT 2025