2017-10-20         Juan Manuel Guerrero  <juan.guerrero@gmx.de>

	* pc/Makefile (djgpp, djgpp-debug): Support also older compilers.







diff -aprNU5 gawk-4.2.0.orig/pc/Makefile gawk-4.2.0/pc/Makefile
--- gawk-4.2.0.orig/pc/Makefile	2017-09-04 09:22:38 +0000
+++ gawk-4.2.0/pc/Makefile	2017-10-20 20:32:54 +0000
@@ -113,17 +113,17 @@ endif
 LDJG = $(CC) $(LF) -o gawk.exe $(LDRSP) $(LF2)
 BDJG = stubify -g awk.exe | stubedit awk.exe runfile=gawk
 
 djgpp:
 	$(MAK) all \
-	CC=gcc O=.o CF=-O2 \
+	CC=gcc O=.o CF='-O2 -std=gnu99' \
 	LNK=LDJG LF=-s LF2=-lm \
 	BIND=BDJG
 
 djgpp-debug:
 	$(MAK) all \
-	CC=gcc O=.o CF='-O2 -g' \
+	CC=gcc O=.o CF='-O2 -g -std=gnu99' \
 	LNK=LDJG LF2=-lm \
 	BIND=BDJG
 
 #========================================================================
 #========================== EMX =========================================


2017-10-21         Juan Manuel Guerrero  <juan.guerrero@gmx.de>

	* pc/Makefile (install1): Copy gawk.exe as awk.exe only for other
	targets than DJGPP.








diff -aprNU5 gawk-4.2.0.orig/pc/Makefile gawk-4.2.0/pc/Makefile
--- gawk-4.2.0.orig/pc/Makefile	2017-10-21 18:47:58 +0000
+++ gawk-4.2.0/pc/Makefile	2017-10-21 19:23:58 +0000
@@ -297,11 +297,13 @@ install1:
 	-mkdir "$(prefix)/bin"
 	-mkdir "$(prefix)/share"
 	-mkdir "$(prefix)/share/man"
 	-mkdir "$(pkgdatadir)" "$(prefix)/share/man/man1" "$(prefix)/share/info"
 	cp *awk.exe igawk.bat igawk.cmd pc/awklib/igawk $(prefix)/bin
+ifeq ($(DJGPP),)
 	cp gawk.exe $(prefix)/bin/awk.exe
+endif
 	cp awklib/eg/lib/* pc/awklib/igawk.awk $(pkgdatadir)
 	cp doc/*.1 $(prefix)/share/man/man1
 	cp doc/*.info $(prefix)/share/info
 
 # install2 is equivalent to install1, but doesn't require cp, sed, etc.
