summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 15067c6..97b2e1d 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -7,13 +7,18 @@
NORECURSE = true
+ACLOCALARGS =
+
+CFLAGS = -g -O -Wall -D__USE_FIXED_PROTOTYPES__
+export CFLAGS
+
# If the user asked for a specific target, invoke the Makefile instead.
#
.DEFAULT:
@[ -f Makefile.in -a -f configure -a -f aclocal.m4 -a -f config.h.in ] \
|| $(MAKE) __cfg NORECURSE=
@[ -f Makefile ] \
- || ./configure
+ || CFLAGS='-g -O -Wall -D__USE_FIXED_PROTOTYPES__' ./configure
$(MAKE) -f Makefile $@
.PHONY: __cfg __cfg_basic
@@ -23,21 +28,20 @@ NORECURSE = true
ACCONFIG = acconfig.h
__cfg: __cfg_basic config.h.in TAGS
- cd glob && $(MAKE) -f ../GNUmakefile __cfg_basic ACCONFIG=
ifdef NORECURSE
- @echo ""; echo "Now you should run one of:"; echo ""; \
- echo " make all"; \
+ @echo ""; echo "Now you should run:"; echo ""; \
+ echo " make all"; echo ""; \
+ echo "then, optionally, one of:"; echo ""; \
echo " make dist"; \
echo " make distdir"; \
- echo " make distcheck"; echo ""; \
- echo "Or similar to proceed.";\
+ echo " make distcheck"; \
echo ""
endif
__cfg_basic: aclocal.m4 stamp-h.in configure Makefile.in
aclocal.m4: configure.in $(wildcard acinclude.m4)
- aclocal
+ aclocal $(ACLOCALARGS)
config.h.in: stamp-h.in
stamp-h.in: configure.in aclocal.m4 $(ACCONFIG)
@@ -45,7 +49,7 @@ stamp-h.in: configure.in aclocal.m4 $(ACCONFIG)
echo timestamp > $@
configure: configure.in aclocal.m4
- autoconf
+ autoconf $(ACARGS)
Makefile.in: configure.in config.h.in Makefile.am aclocal.m4
automake --add-missing