7f23bcab2c
binutils.all to binutils-all.
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
CFLAGS_FOR_TARGET =
|
|
|
|
CC_FOR_TARGET = ` \
|
|
if [ -f $${rootme}/../../gcc/xgcc ] ; then \
|
|
echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
|
|
else \
|
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
|
echo $(CC); \
|
|
else \
|
|
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
|
|
fi; \
|
|
fi`
|
|
|
|
CXX = gcc
|
|
CXX_FOR_TARGET = ` \
|
|
if [ -f $${rootme}/../../gcc/xgcc ] ; then \
|
|
echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
|
|
else \
|
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
|
echo $(CXX); \
|
|
else \
|
|
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
|
|
fi; \
|
|
fi`
|
|
|
|
#### host, target, and site specific Makefile frags come in here.
|
|
|
|
srcdir = .
|
|
|
|
all: bintest
|
|
|
|
bintest: $(srcdir)/bintest.c
|
|
$(CC_FOR_TARGET) $(CFLAGS_FOR_TARGET) $(CFLAGS) -g -o bintest $(srcdir)/bintest.c $(LDFLAGS)
|
|
|
|
clean:
|
|
-rm -f *.o bintest *.diff *~ *.bad core m68k.gld
|
|
|
|
distclean: clean
|
|
-rm -f Makefile config.status nmtest.c
|
|
|
|
Makefile : $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
|
|
$(SHELL) ./config.status
|
|
|
|
force:
|