Thread overview
Make troubles
Jan 09, 2003
Gisle Vanem
Jan 09, 2003
Walter
Jan 09, 2003
Gisle Vanem
Jan 09, 2003
Walter
Jan 10, 2003
Gisle Vanem
Jan 10, 2003
Walter
Jan 10, 2003
Gisle Vanem
January 09, 2003
I'll try again.

 What's wrong with the following makefile:
------------------------------

MODEL  = x
CC     = dmc.exe
CFLAGS = -m$(MODEL) -I$(DIGMARS)\include -I..\inc -Jm -L/map:full
LFLAGS = -L/stack:20000
LIBS   = ..\lib\wattcpd$(MODEL).lib

!if "$(MODEL)" == "x"
  LIBS = ..\lib\wattcpdf.lib x32.lib
!endif

!if "$(MODEL)" == "p"
  LIBS = ..\lib\wattcpdf.lib x32.lib dosx32.lib exc_dmc.lib
!endif

PROGS = ping.exe popdump.exe rexec.exe tcpinfo.exe

all:  $(PROGS)
      @echo Digital Mars binaries done

.c.exe:
      $(CC) $*.c $(LIBS)  $(CFLAGS) $(LIBS) $(LFLAGS)

------------------------------

When I run "\dmc\bin\make -l -d -f digmars.mak" I would expect some debug output, but doesn't:

MODEL  = x
CC     = dmc.exe
CFLAGS = -mx -Id:\dmc\include -I..\inc -Jm -L/map:full
LFLAGS = -L/stack:20000
LIBS   = ..\lib\wattcpdx.lib
!if "x" == "x"               #<<< line 7
Error on line 7: expecting target : dependencies

\dmc\bin\make.exe -v
Digital Mars Make Version 5.02

--
# rm -fv /bin/laden
/bin/rm: Operation already in progress (EALREADY)


January 09, 2003
Make doesn't support ! commands. Try smake instead. -Walter

"Gisle Vanem" <giva@bgnett.no> wrote in message news:avjrmk$1jgv$1@digitaldaemon.com...
> I'll try again.
>
>  What's wrong with the following makefile:
> ------------------------------
>
> MODEL  = x
> CC     = dmc.exe
> CFLAGS = -m$(MODEL) -I$(DIGMARS)\include -I..\inc -Jm -L/map:full
> LFLAGS = -L/stack:20000
> LIBS   = ..\lib\wattcpd$(MODEL).lib
>
> !if "$(MODEL)" == "x"
>   LIBS = ..\lib\wattcpdf.lib x32.lib
> !endif
>
> !if "$(MODEL)" == "p"
>   LIBS = ..\lib\wattcpdf.lib x32.lib dosx32.lib exc_dmc.lib
> !endif
>
> PROGS = ping.exe popdump.exe rexec.exe tcpinfo.exe
>
> all:  $(PROGS)
>       @echo Digital Mars binaries done
>
> .c.exe:
>       $(CC) $*.c $(LIBS)  $(CFLAGS) $(LIBS) $(LFLAGS)
>
> ------------------------------
>
> When I run "\dmc\bin\make -l -d -f digmars.mak" I would expect some debug output, but doesn't:
>
> MODEL  = x
> CC     = dmc.exe
> CFLAGS = -mx -Id:\dmc\include -I..\inc -Jm -L/map:full
> LFLAGS = -L/stack:20000
> LIBS   = ..\lib\wattcpdx.lib
> !if "x" == "x"               #<<< line 7
> Error on line 7: expecting target : dependencies
>
> \dmc\bin\make.exe -v
> Digital Mars Make Version 5.02
>
> --
> # rm -fv /bin/laden
> /bin/rm: Operation already in progress (EALREADY)
>
>


January 09, 2003
Walter <walter@digitalmars.com> wrote:
> Make doesn't support ! commands. Try smake instead. -Walter

Which crashes the DOS-box in a split second....

Gisle V.


January 09, 2003
"Gisle Vanem" <giva@bgnett.no> wrote in message news:avkasb$1stg$1@digitaldaemon.com...
> Walter <walter@digitalmars.com> wrote:
> > Make doesn't support ! commands. Try smake instead. -Walter
>
> Which crashes the DOS-box in a split second....

The DOS box under what OS? (smake is a win32 console program)


January 10, 2003
"Walter" <walter@digitalmars.com> wrote:

> "Gisle Vanem" <giva@bgnett.no> wrote in message news:avkasb$1stg$1@digitaldaemon.com...
> > Walter <walter@digitalmars.com> wrote:
> > > Make doesn't support ! commands. Try smake instead. -Walter
> >
> > Which crashes the DOS-box in a split second....
>
> The DOS box under what OS? (smake is a win32 console program)

Under Win-XP. That's funny, my smake.exe is a DOSX program.
And I got it from ftp://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm832util.zip
Is there a more recent version?

--
Gisle V.

Not what you think it is; http://www.nice-tits.org


January 10, 2003
I'm using winxp, and smake (7.5) is a win32 executable.

"Gisle Vanem" <giva@bgnett.no> wrote in message news:avlce5$2h3o$1@digitaldaemon.com...
> "Walter" <walter@digitalmars.com> wrote:
>
> > "Gisle Vanem" <giva@bgnett.no> wrote in message news:avkasb$1stg$1@digitaldaemon.com...
> > > Walter <walter@digitalmars.com> wrote:
> > > > Make doesn't support ! commands. Try smake instead. -Walter
> > >
> > > Which crashes the DOS-box in a split second....
> >
> > The DOS box under what OS? (smake is a win32 console program)
>
> Under Win-XP. That's funny, my smake.exe is a DOSX program. And I got it from
ftp://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm832util.zip
> Is there a more recent version?
>
> --
> Gisle V.
>
> Not what you think it is; http://www.nice-tits.org
>
>


January 10, 2003
"Walter" <walter@digitalmars.com> wrote:

> I'm using winxp, and smake (7.5) is a win32 executable.

Can you tell me in what .zip it is then?

Thanks

Gisle V.