mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-07 15:16:58 +00:00
(CPPFLAGS): New variable, set from @CPPFLAGS@.
(RANLIB): Variable removed. (prefix, exec_prefix): Set these from @...@. (.c.o): Use $(CPPFLAGS). (glob/libglob.a): Don't pass down variables to sub-make. glob/Makefile should be configured properly by configure. (distclean): Remove config.log and config.cache (autoconf stuff).
This commit is contained in:
parent
b2c0446e71
commit
f801fc3521
1 changed files with 6 additions and 10 deletions
|
@ -30,11 +30,9 @@ srcdir = @srcdir@
|
||||||
CC = @CC@
|
CC = @CC@
|
||||||
|
|
||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
# How to invoke ranlib. This is only used by the `glob' subdirectory.
|
|
||||||
RANLIB = @RANLIB@
|
|
||||||
|
|
||||||
# Define these for your system as follows:
|
# Define these for your system as follows:
|
||||||
# -DNO_ARCHIVES To disable `ar' archive support.
|
# -DNO_ARCHIVES To disable `ar' archive support.
|
||||||
# -DNO_FLOAT To avoid using floating-point numbers.
|
# -DNO_FLOAT To avoid using floating-point numbers.
|
||||||
|
@ -77,9 +75,9 @@ LOADLIBES = @LIBS@
|
||||||
extras = @LIBOBJS@
|
extras = @LIBOBJS@
|
||||||
|
|
||||||
# Common prefix for machine-independent installed files.
|
# Common prefix for machine-independent installed files.
|
||||||
prefix = /usr/local
|
prefix = @prefix@
|
||||||
# Common prefix for machine-dependent installed files.
|
# Common prefix for machine-dependent installed files.
|
||||||
exec_prefix = $(prefix)
|
exec_prefix = @exec_prefix@
|
||||||
|
|
||||||
# Directory to install `make' in.
|
# Directory to install `make' in.
|
||||||
bindir = $(exec_prefix)/bin
|
bindir = $(exec_prefix)/bin
|
||||||
|
@ -166,17 +164,14 @@ make: $(objs)
|
||||||
# -I. is needed to find config.h in the build directory.
|
# -I. is needed to find config.h in the build directory.
|
||||||
.c.o:
|
.c.o:
|
||||||
$(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob \
|
$(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob \
|
||||||
$(CFLAGS) $< $(OUTPUT_OPTION)
|
$(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
|
||||||
|
|
||||||
# For some losing Unix makes.
|
# For some losing Unix makes.
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
MAKE = make
|
MAKE = make
|
||||||
|
|
||||||
glob/libglob.a: FORCE config.h
|
glob/libglob.a: FORCE config.h
|
||||||
cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
|
cd glob; $(MAKE) libglob.a
|
||||||
CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
|
|
||||||
RANLIB='$(RANLIB)' \
|
|
||||||
libglob.a
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
||||||
tagsrcs = $(srcs) $(srcdir)/remote-*.c
|
tagsrcs = $(srcs) $(srcdir)/remote-*.c
|
||||||
|
@ -250,6 +245,7 @@ clean: glob-clean
|
||||||
-rm -f make loadavg *.o core make.info* make.dvi
|
-rm -f make loadavg *.o core make.info* make.dvi
|
||||||
distclean: clean glob-realclean
|
distclean: clean glob-realclean
|
||||||
-rm -f Makefile config.h config.status build.sh stamp-config
|
-rm -f Makefile config.h config.status build.sh stamp-config
|
||||||
|
-rm -f config.log config.cache
|
||||||
-rm -f TAGS tags
|
-rm -f TAGS tags
|
||||||
-rm -f make.?? make.??s make.log make.toc make.*aux
|
-rm -f make.?? make.??s make.log make.toc make.*aux
|
||||||
-rm -f loadavg.c
|
-rm -f loadavg.c
|
||||||
|
|
Loading…
Reference in a new issue