33 lines
808 B
Plaintext
33 lines
808 B
Plaintext
|
|
# Common rules for debugcard makefiles.
|
|
|
|
include $(COMMONRULES)
|
|
|
|
#
|
|
# Following rules are directly copied from arcs/commonrules.
|
|
|
|
$(OBJECTDIR) ${LINTDIR}: ${_FORCE}
|
|
@if test ! -d $@; then \
|
|
rm -rf $@; mkdir $@; \
|
|
fi
|
|
|
|
$(COMMONPREF)lint: $(LINTDIR) $(LOBJECTS)
|
|
|
|
|
|
#
|
|
# The following rules are much better then those in arcs/commonrules.
|
|
# CCFLAGS is set in mhdbcommondefs
|
|
# DBLCCFLAGS can be set in the Makefiles of various subdirectories under debugcard
|
|
# DBLASFLAGS can be set in the Makefiles of various subdirectories under debugcard
|
|
|
|
.SUFFIXES: .ln
|
|
|
|
.c.o:
|
|
${CC} $< $(CCFLAGS) $(DBLCCFLAGS) $(INCLUDES) -c -o $(OBJECTDIR)/$*.o
|
|
|
|
.s.o:
|
|
${AS} $< -Wab,-r4000 $(ASFLAGS) $(DBLASFLAGS) $(INCLUDES) -o $(OBJECTDIR)/$*.o
|
|
|
|
.c.ln:
|
|
${LINT} $(LINTCFLAGS) -c $< && mv $@ ln$$$$ && mv ln$$$$ $(LINTDIR)/$@
|