tommeekers
Programmer
Hi,
I have an example source code (I have no idea what it is supposed to do), with a 'makefile included'. Surfing the web I found the free Borland C++ compiler. I'm trying to run this 'makefile' (it should make me a .dll)
This is the makefile:
# $Id: $
CC = cl
LINK = link
DEFINES = -DWIN32
OUTNAME = opengl32
CFLAGS = /nologo /MT /W3 /GX
LFLAGS = -nologo -warn -dll -incremental:no -opt:ref -release
OFILES = opengl32.obj
all: whole
whole: $(OFILES) $(OUTNAME).exp
link $(OFILES) $(OUTNAME).exp $(LFLAGS) $(LIBS) -out:$(OUTNAME).dll
$(OUTNAME).exp: $(OUTNAME).def
lib -nologo -def:$(OUTNAME).def -out:$(OUTNAME).lib $(OFILES)
clean:
@del *.obj
@del *.dll
@del *.exp
@del *.lib
@del *.map
@del *.pdb
.cpp.obj:
$(CC) -c $(CFLAGS) /Fo$(<R).obj $<
.c.obj:
$(CC) -c $(CFLAGS) /Fo$(<R).obj $<
when I use make.exe to make my .dll it keeps giving an error about the 'cl'. It doesn't understand it or something. What is wrong here ? Why can't I compile this ?
I have an example source code (I have no idea what it is supposed to do), with a 'makefile included'. Surfing the web I found the free Borland C++ compiler. I'm trying to run this 'makefile' (it should make me a .dll)
This is the makefile:
# $Id: $
CC = cl
LINK = link
DEFINES = -DWIN32
OUTNAME = opengl32
CFLAGS = /nologo /MT /W3 /GX
LFLAGS = -nologo -warn -dll -incremental:no -opt:ref -release
OFILES = opengl32.obj
all: whole
whole: $(OFILES) $(OUTNAME).exp
link $(OFILES) $(OUTNAME).exp $(LFLAGS) $(LIBS) -out:$(OUTNAME).dll
$(OUTNAME).exp: $(OUTNAME).def
lib -nologo -def:$(OUTNAME).def -out:$(OUTNAME).lib $(OFILES)
clean:
@del *.obj
@del *.dll
@del *.exp
@del *.lib
@del *.map
@del *.pdb
.cpp.obj:
$(CC) -c $(CFLAGS) /Fo$(<R).obj $<
.c.obj:
$(CC) -c $(CFLAGS) /Fo$(<R).obj $<
when I use make.exe to make my .dll it keeps giving an error about the 'cl'. It doesn't understand it or something. What is wrong here ? Why can't I compile this ?