Makefile revision 1.22
1#	$NetBSD: Makefile,v 1.22 2006/01/26 22:16:08 he Exp $
2
3LIB=sa
4
5# 
6# We're not actually building a profiled version,
7# but this way the separate object files get built
8#
9
10POBJS=SRT0.o SRT1.o
11
12NOLINT=# defined
13NOPIC=# defined
14NOPROFILE=# defined
15
16# Logically src/sys
17S=${.CURDIR}/../../../..
18DIR_SA=${S}/lib/libsa
19DIR_KERN=${S}/lib/libkern ${S}/lib/libkern/arch/m68k
20DIR_LIBC=${S}/../common/lib/libc
21
22.PATH:  ${DIR_SA} ${DIR_KERN} \
23	${DIR_LIBC}/gen ${DIR_LIBC}/arch/m68k/gen \
24	${DIR_LIBC}/inet ${DIR_LIBC}/arch/m68k/inet \
25	${DIR_LIBC}/quad ${DIR_LIBC}/arch/m68k/quad \
26	${DIR_LIBC}/string ${DIR_LIBC}/arch/m68k/string \
27	${S}/arch/sun68k/sun68k
28
29# DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \
30#  -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG -DDEBUG_PROM
31
32DEFS= -Dsun3 -D_STANDALONE -D__daddr_t=int32_t
33INCL= -I. -I${.CURDIR} -I${S}/lib/libsa -I${S}
34AFLAGS= -Wa,-mc68020 -Wa,-mc68851
35CFLAGS= -mc68000 -Wa,-mc68010 -Wa,-m68851 -Os -msoft-float -fno-defer-pop -ffreestanding
36CPPFLAGS= ${DEFS} ${DBG} ${INCL}
37CLEANFILES= SRT0.o SRT1.o vers.c
38
39SRC_net= net.c ether.c arp.c ip_cksum.c rarp.c
40
41SRC_sa = alloc.c bcopy.c close.c files.c getfile.c loadfile.c loadfile_aout.c \
42	loadfile_elf32.c lseek.c memcpy.c memmove.c open.c printf.c read.c \
43	snprintf.c sprintf.c strerror.c subr_prf.c twiddle.c ctrlsp.S
44
45SRC_kern= intoa.c
46
47# bring in the required libgcc integer support:
48SRC_libc_gen= mulsi3.S divsi3.S udivsi3.S modsi3.S umodsi3.S muldi3.c
49
50SRC_libc_inet= inet_addr.c
51
52SRC_libc_quad= ashldi3.c ashrdi3.c
53
54SRC_libc_string= bcmp.S bzero.S memcmp.S memset.S strcmp.S strlen.S strncmp.S
55
56SRC_here= clock.c dev_disk.c devopen.c \
57	 gets.c idprom.c netif_sun.c panic.c \
58	 promboot.c promcons.c promdev.c putstr.c \
59	 sun2.c sun3.c sun3x.c vers.c xxboot.c
60
61SRCS=	${SRC_net} ${SRC_sa} ${SRC_kern} \
62	${SRC_libc_gen} ${SRC_libc_inet} ${SRC_libc_quad} ${SRC_libc_string} \
63	${SRC_here}
64
65# only needed during build
66libinstall::
67
68
69.include <bsd.own.mk>
70.undef DESTDIR=
71.include <bsd.lib.mk>
72
73# Nuke these...
74LOBJS=
75POBJS=
76SOBJS=
77
78# Customized rules...
79
80vers.c: ${.CURDIR}/version
81	${HOST_SH} ${S}/conf/newvers_stand.sh -MD ${.CURDIR}/version "${MACHINE}"
82