I managed to build this with a combination of running configure on linux like so:
./configure --prefix=/gmake CC=gcc CPP=cpp CXX=cxx DEPDIR=deps.tmp and then using DJGPP and a Makefile I built (attached) I managed to compile it with make -f makefile.dos make However the resulting make.exe program simply aborts to various errors like String too long Abort! And then dumps a stack trace which is entirely unhelpful. I didn't pursue it further than that since it can't even handle this simple makefile I created :/ So I can't write a make file which would make this make 0.0 happy. Some example files would be nice and maybe more helpful error messages. I tried looking at the code but gave up very quickly as it is basically completely undocumented and uses a tonne of macros to do some macro magic. --Wolf -- |\_ | .\---. / ,__/ / /Wolf <wolf+...@bergenheim.net>_ On Sun, Nov 10, 2024 at 7:17 AM Rugxulo via Freedos-devel < freedos-devel@lists.sourceforge.net> wrote: > Hi, > > On Thu, Oct 24, 2024 at 12:18 PM Gregory Pietsch via Freedos-devel > <freedos-devel@lists.sourceforge.net> wrote: > > > > I am sending a GPLed version of the Unix make utility in the hopes that > other programmers can make it great again! Please send back improvements. > > Since there is no binary included, but it relies on the GNU AutoTools > to build (presuming a native POSIX toolset and Sh that is not fully > working together on native DOS with DJGPP), can you please compile > this for us? (I think even GNU Make used to come with a .BAT to > bootstrap it.) > > I do have some limited experience with Dmake, Borland Make, GNU make, > OpenWatcom wmake, etc. > > At risk of stating the obvious, a simple .BAT will be slower for > rebuilds, but anything is better than a broken, unportable makefile. > > DosWorld had a VERY minimal subset of Make for simple tasks (no > variables but only 5 kb .EXE, public domain): > > * https://github.com/DosWorld/smallmake > > > _______________________________________________ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel >
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the `getopt_long' function. */ #define HAVE_GETOPT_LONG 1 /* Define to 1 if you have the <inttypes.h> header file. */ #define HAVE_INTTYPES_H 1 /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #define HAVE_MALLOC 1 /* Define to 1 if you have the `memchr' function. */ #define HAVE_MEMCHR 1 /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE 1 /* Define to 1 if you have the `memset' function. */ #define HAVE_MEMSET 1 /* Define to 1 if your system has a GNU libc compatible `realloc' function, and to 0 otherwise. */ #define HAVE_REALLOC 1 /* Define to 1 if you have the `stat' function. */ #define HAVE_STAT 1 /* Define to 1 if you have the <stdint.h> header file. */ #define HAVE_STDINT_H 1 /* Define to 1 if you have the <stdio.h> header file. */ #define HAVE_STDIO_H 1 /* Define to 1 if you have the <stdlib.h> header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the `strchr' function. */ #define HAVE_STRCHR 1 /* Define to 1 if you have the <strings.h> header file. */ #define HAVE_STRINGS_H 1 /* Define to 1 if you have the <string.h> header file. */ #define HAVE_STRING_H 1 /* Define to 1 if you have the <sys/stat.h> header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the <sys/types.h> header file. */ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the <sys/wait.h> header file. */ #define HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the <unistd.h> header file. */ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the `utime' function. */ #define HAVE_UTIME 1 /* Define to 1 if you have the <utime.h> header file. */ #define HAVE_UTIME_H 1 /* Name of package */ #define PACKAGE "make" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "gpiet...@comcast.net" /* Define to the full name of this package. */ #define PACKAGE_NAME "make" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "make 0.0" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "make" /* Define to the home page for this package. */ #define PACKAGE_URL "" /* Define to the version of this package. */ #define PACKAGE_VERSION "0.0" /* Define to 1 if all of the C90 standard headers exist (not just the ones required in a freestanding environment). This macro is provided for backward compatibility; new code need not use it. */ #define STDC_HEADERS 1 /* Version number of package */ #define VERSION "0.0" /* Define to rpl_malloc if the replacement function should be used. */ /* #undef malloc */ /* Define to rpl_realloc if the replacement function should be used. */ /* #undef realloc */ /* Define to `unsigned int' if <sys/types.h> does not define. */ /* #undef size_t */
Makefile.dos
Description: Binary data
_______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel