Makefile.`arch`: - Add -lcompat

- Change clean: target to be a double dep one,
			  so libraries can use the clean target too
This commit is contained in:
christos 1995-06-24 20:40:45 +00:00
parent a94817a5de
commit 3cb270c7ee
1 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.alpha,v 1.4 1995/05/16 22:24:17 jtc Exp $
# $NetBSD: Makefile.alpha,v 1.5 1995/06/24 20:40:45 christos Exp $
#
# Makefile for NetBSD
#
@ -45,6 +45,14 @@ LIBKERN= ${KERNLIB}
LIBKERN= ${KERNLIB_PROF}
.endif
### find out what to use for libcompat
.include "$S/compat/common/Makefile.inc"
.ifndef PROF
LIBCOMPAT= ${COMPATLIB}
.else
LIBCOMPAT= ${COMPATLIB_PROF}
.endif
# compile rules: rules are named ${TYPE}_${SUFFIX}${CONFIG_DEP}
# where TYPE is NORMAL, DRIVER, or PROFILE}; SUFFIX is the file suffix,
# capitalized (e.g. C for a .c file), and CONFIG_DEP is _C if the file
@ -75,7 +83,8 @@ LDX=-X
LDX=-x
.endif
LDFLAGS= ${LDX} -G 4 -N -e __start -Ttext fffffc0000230000
SYSTEM_OBJ= locore.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN}
SYSTEM_OBJ= locore.o vnode_if.o ${OBJS} param.o ioconf.o ${LIBKERN} \
${LIBCOMPAT}
SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
SYSTEM_LD= -@echo ${LD} ${LDFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o ${XXX}; \
@ -92,7 +101,7 @@ newvers:
sh $S/conf/newvers.sh
${CC} ${CFLAGS} -c vers.c
clean:
clean::
rm -f eddep *netbsd netbsd.gdb tags tags1 vnode_if.[ch] *.[io] \
[a-z]*.s Errs errs linterrs makelinks genassym