[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small djgpp specific patch
From: |
Juan Manuel Guerrero |
Subject: |
Small djgpp specific patch |
Date: |
Mon, 2 Aug 2010 20:24:58 +0200 |
User-agent: |
KMail/1.9.10 |
Here is a small patch to make "make" compile out-of-the-box with djgpp.
Regards,
Juan M. Guerrero
2010-07-31 Juan Manuel Guerrero <address@hidden>
* configh.dos: Define HAVE_STRNCASECMP.
* dosbuild.bat: Use /dev/env/DJDIR instead of c:/djgpp.
Add ./popen.c to the list of objects to build.
diff -aprNU5 make-3.82.orig/configh.dos make-3.82/configh.dos
--- make-3.82.orig/configh.dos 2010-07-28 05:42:18 +0000
+++ make-3.82/configh.dos 2010-08-02 20:05:40 +0000
@@ -88,10 +88,13 @@ this program. If not, see <http://www.g
#define HAVE_VPRINTF 1
/* Define to 1 if you have the stricmp function. */
#define HAVE_STRICMP 1
+/* Define to 1 if you have the `strncasecmp' function. */
+#define HAVE_STRNCASECMP 1
+
/* Name of the package */
#define PACKAGE "make"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "address@hidden"
diff -aprNU5 make-3.82.orig/dosbuild.bat make-3.82/dosbuild.bat
--- make-3.82.orig/dosbuild.bat 2010-07-13 01:20:38 +0000
+++ make-3.82/dosbuild.bat 2010-08-02 20:05:40 +0000
@@ -18,18 +18,19 @@ rem with this program. If not, see <htt
echo Building Make for MSDOS
rem Echo ON so they will see what is going on.
@echo on
+gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g popen.c -o popen.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g commands.c -o commands.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g job.c -o job.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g dir.c -o dir.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g file.c -o file.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g misc.c -o misc.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g main.c -o main.o
-gcc -c -I. -I./glob -DHAVE_CONFIG_H -DINCLUDEDIR=\"c:/djgpp/include\" -O2 -g
read.c -o read.o
-gcc -c -I. -I./glob -DHAVE_CONFIG_H -DLIBDIR=\"c:/djgpp/lib\" -O2 -g remake.c
-o remake.o
+gcc -c -I. -I./glob -DHAVE_CONFIG_H -DINCLUDEDIR=\"/dev/env/DJDIR/include\"
-O2 -g read.c -o read.o
+gcc -c -I. -I./glob -DHAVE_CONFIG_H -DLIBDIR=\"/dev/env/DJDIR/lib\" -O2 -g
remake.c -o remake.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g rule.c -o rule.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g implicit.c -o implicit.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g default.c -o default.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g variable.c -o variable.o
gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g expand.c -o expand.o
- Small djgpp specific patch,
Juan Manuel Guerrero <=