Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Makefile

Status
Not open for further replies.

lllaura

Programmer
Apr 20, 2000
1
US
I'm using the free version of Borland C++ (Borland C++ Version 5.5 for WIN32) and I'm trying to make a makefile to run create my executable.&nbsp;&nbsp;The command that I type at the promt right now to create my executable is...<br><br>bcc32 ncampus.cpp bldgs.cpp texmap.cpp ground.cpp glut32.lib opengl32.lib<br><br>This works, but the makefile is just plain confusing me! I can run it and it creates all my object files, but it won't create an executable (and it doesn't give me any errors either!). <br>What I have so far is:<br><br>TARGET=final<br>CFLAGS=-c -Ic:\BORLAND\bcc55\INCLUDE&nbsp;&nbsp;-Lc:\BORLAND\bcc55\LIB<br>CC=bcc32<br><br>OBJECTS = ncampus.obj bldgs.obj texmap.obj ground.obj<br><br>final.exe : $(OBJECTS)<br>&nbsp;&nbsp;$(CC) $(CFLAGS) -obj $(OBJECTS) -Lopengl32.lib -Lglut32.lib<br><br>ncampus.obj: ncampus.cpp<br>&nbsp;&nbsp;$(CC) $(CFLAGS)&nbsp;&nbsp;ncampus.cpp<br><br>bldgs.obj: bldgs.cpp <br>&nbsp;&nbsp;$(CC) $(CFLAGS)&nbsp;&nbsp;bldgs.cpp<br><br>texmap.obj: texmap.cpp <br> $(CC) $(CFLAGS) texmap.cpp <br><br>ground.obj: ground.cpp<br> $(CC) $(CFLAGS) ground.cpp<br><br>Can someone tell me what I'm doing wrong?<br><br>Thank you,<br>Laura Lucas<br>&nbsp;&nbsp;&nbsp;
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top