* clean, depend :: -> : change
* use genassym.sh to create assym.h
This commit is contained in:
parent
9eb66b4bab
commit
a6befcbede
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.pc532,v 1.34 1996/12/22 19:14:14 veego Exp $
|
||||
# $NetBSD: Makefile.pc532,v 1.35 1997/02/01 09:23:02 matthias Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -62,7 +62,7 @@ LIBCOMPAT= ${COMPATLIB_PROF}
|
|||
.endif
|
||||
|
||||
# compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
|
||||
# HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
|
||||
# HOSTED, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
|
||||
|
||||
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
|
||||
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
|
||||
|
@ -100,14 +100,9 @@ LINKFLAGS+= -S
|
|||
|
||||
%LOAD
|
||||
|
||||
assym.h: genassym
|
||||
./genassym >assym.h
|
||||
|
||||
genassym: genassym.o
|
||||
${CC} -o $@ genassym.o
|
||||
|
||||
genassym.o: ${PC532}/pc532/genassym.c
|
||||
${HOSTED_C}
|
||||
assym.h: ${PC532}/pc532/genassym.cf $S/kern/genassym.sh
|
||||
sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} \
|
||||
<${PC532}/pc532/genassym.cf >assym.h || rm assym.h
|
||||
|
||||
param.c: $S/conf/param.c
|
||||
rm -f param.c
|
||||
|
@ -124,7 +119,7 @@ newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
|
|||
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
|
||||
|
||||
|
||||
clean::
|
||||
clean:
|
||||
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
|
||||
[Ee]rrs linterrs makelinks genassym genassym.o assym.h
|
||||
|
||||
|
@ -147,14 +142,11 @@ links:
|
|||
|
||||
SRCS= ${PC532}/pc532/locore.s \
|
||||
param.c ioconf.c ${CFILES} ${SFILES}
|
||||
depend:: .depend
|
||||
depend: .depend
|
||||
.depend: ${SRCS} assym.h param.c
|
||||
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${PC532}/pc532/locore.s
|
||||
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
|
||||
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
|
||||
${MKDEP} -a ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} \
|
||||
${PC532}/pc532/genassym.c
|
||||
|
||||
|
||||
# depend on root or device configuration
|
||||
autoconf.o conf.o: Makefile
|
||||
|
|
Loading…
Reference in New Issue