Mail Archives: djgpp/1992/11/24/07:57:17
>
> Any suggestions on how to port standard MS-DOS makefile's to DJGPP?
> Any help or text files would be appreciated.
>
> erbrad AT lsuvax DOT sncc DOT lsu DOT edu
>
It is not totally clear to me what you mean by 'standard MS-DOS makefiles'
since the 'make' program is a UNIX program, supplied by some MS-DOS
compilers as well (e.g. Borland).
I use such a version of make (Borland) together with DJGPP.
The only 'non-portability' I have encountered is the fact that the
MS-DOS make program (or better: MS-DOS itself) doesn't like commandlines
of more than 128 chars.
GCC as well as all programs using GO32 ('DJGPP') can be supplied
with a 'link' response file to cope with this.
See example.
------------------------------ makefile ------------------------------------
#
PROG = progname
OBJ = obj1.o obj2.o
LIB = -lm -lcurses
PCLIB = -lgr -lpc
.c.o:
GCC -O -c $<
$(PROG): $(OBJ) $(PROG).o
make $(PROG).lnk
GCC -O -o $(PROG) @$(PROG).lnk $(LIB) $(PCLIB)
$(PROG).lnk:
for %o in (*.o) do echo %o >>$(PROG).lnk # MS-DOS batch language
------------------------------------------------------------------------------
Pieter Kunst (kunst AT prl DOT philips DOT nl)
- Raw text -