Added missing parts of patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.

This commit is contained in:
Joel Sherrill
1998-07-28 16:50:14 +00:00
parent bd7c547d20
commit 30cde042bb
2 changed files with 32 additions and 8 deletions

View File

@@ -203,8 +203,20 @@ ${ARCH}/%.o: %.s
# Specify our own default rule for this to prevent having CFLAGS and
# CPPFLAGS being passed to linker
${ARCH}/%: ${ARCH}/%.o
${CC} ${LDFLAGS} -o $@ $@.o ${LD_LIBS}
#
#
# NOTE (Ralf): Having this rule is a bug, IMO.
# I have only kept it for the moment because some (broken) Makefiles
# might need it.
#
# ${ARCH}/%: ${ARCH}/%.o
# ${CC} ${LDFLAGS} -o $@ $@.o ${LD_LIBS}
#
# Anyway, the rule above is wrong. The one below should be correct
# (But this one should also not be necessary. If something breaks now,
# have a look at the Makefile or custom/*.cfg :-)
# $(ARCH)/%.exe: $(ARCH)/%.o
# $(make-exe)
# Make foo.rel from foo.o
${ARCH}/%.rel: ${ARCH}/%.o
@@ -271,11 +283,11 @@ endif
# gcc27:
# $(PGM): $(LINK_FILES)
# $(LD) $(LDFLAGS) -o $@ $(LINK_OBJS) \
# --start-group $(LIB_LIBS) --end-group
# --start-group $(LINK_LIBS) --end-group
#
# gcc28:
# $(PGM): $(LINK_FILES)
# $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LIB_LIBS)
# $(CC) $(CFLAGS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
#
LINK_OBJS =\