mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +08:00
add real install, and some more normal paths.
This commit is contained in:
@ -2,6 +2,20 @@
|
|||||||
|
|
||||||
srcdir = .
|
srcdir = .
|
||||||
|
|
||||||
|
prefix = /usr/local
|
||||||
|
|
||||||
|
program_prefix =
|
||||||
|
exec_prefix = $(prefix)
|
||||||
|
bindir = $(exec_prefix)/bin
|
||||||
|
libdir = $(exec_prefix)/lib
|
||||||
|
tooldir = $(libdir)
|
||||||
|
|
||||||
|
datadir = $(prefix)/lib
|
||||||
|
|
||||||
|
INSTALL = install -c
|
||||||
|
INSTALL_PROGRAM = $(INSTALL)
|
||||||
|
INSTALL_DATA = $(INSTALL)
|
||||||
|
|
||||||
#### host and target dependent Makefile fragments come in here.
|
#### host and target dependent Makefile fragments come in here.
|
||||||
###
|
###
|
||||||
|
|
||||||
@ -22,10 +36,10 @@ all: ${PROG}
|
|||||||
.PHONY: check
|
.PHONY: check
|
||||||
check:
|
check:
|
||||||
|
|
||||||
beforeinstall:
|
install: all
|
||||||
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
$(INSTALL_DATA) ${srcdir}/gprof.flat ${DESTDIR}$(datadir)
|
||||||
${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \
|
$(INSTALL_DATA) ${srcdir}/gprof.callg ${DESTDIR}$(datadir)
|
||||||
${DESTDIR}/usr/share/misc
|
$(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(bindir)
|
||||||
|
|
||||||
$(PROG): $(OBJS)
|
$(PROG): $(OBJS)
|
||||||
$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
|
$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)
|
||||||
|
Reference in New Issue
Block a user