mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
Use -I. to get sysdep.h.
This commit is contained in:
@ -12,15 +12,13 @@ DIST_NAME=binutils-beta-${VERSION}
|
|||||||
|
|
||||||
version=`$(unsubdir)/../gcc$(subdir)/gcc -dumpversion`
|
version=`$(unsubdir)/../gcc$(subdir)/gcc -dumpversion`
|
||||||
prefix = $(destdir)
|
prefix = $(destdir)
|
||||||
bindir = $(prefix)/bin
|
bindir = $(prefix)/H-$(host_alias)/T-independent/bin
|
||||||
libdir = $(prefix)/lib
|
|
||||||
libsubdir = $(libdir)/gcc/$(target)/$(version)
|
|
||||||
|
|
||||||
TEXIDIR = $(srcdir)/../texinfo/fsf
|
TEXIDIR = $(srcdir)/../texinfo/fsf
|
||||||
|
|
||||||
INSTALL = install -c
|
#INSTALL = install -c
|
||||||
INSTALL_PROGRAM = $(INSTALL)
|
#INSTALL_PROGRAM = $(INSTALL)
|
||||||
INSTALL_FILE = $(INSTALL)
|
#INSTALL_FILE = $(INSTALL)
|
||||||
|
|
||||||
#CC=gcc -Wall
|
#CC=gcc -Wall
|
||||||
# these two are almost the same program
|
# these two are almost the same program
|
||||||
@ -47,7 +45,7 @@ LIBDIR = $(unsubdir)/../bfd$(subdir)
|
|||||||
|
|
||||||
INCDIR = $(BASEDIR)/include
|
INCDIR = $(BASEDIR)/include
|
||||||
|
|
||||||
CFLAGS = -g -I$(srcdir)/../include -I$(INCDIR) $(HDEFINES) $(TDEFINES)
|
CFLAGS = -g -I. -I$(INCDIR) $(HDEFINES) $(TDEFINES)
|
||||||
|
|
||||||
# When adding .o files, to make VPATH work in Sun Make, you have to
|
# When adding .o files, to make VPATH work in Sun Make, you have to
|
||||||
# also add a foo.o: foo.c line at the bottom of the file.
|
# also add a foo.o: foo.c line at the bottom of the file.
|
||||||
@ -170,7 +168,8 @@ realclean: clean
|
|||||||
|
|
||||||
install: $(PROGS)
|
install: $(PROGS)
|
||||||
for i in $(PROGS) ; do \
|
for i in $(PROGS) ; do \
|
||||||
$(INSTALL_PROGRAM) $$i $(bindir)/$$i ; \
|
cp $$i $(bindir)/$$i.new ; \
|
||||||
|
mv -f $(bindir)/$$i.new $(bindir)/$$i ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
dist: $(DIST_NAME).tar.Z
|
dist: $(DIST_NAME).tar.Z
|
||||||
|
Reference in New Issue
Block a user