×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Makefile

Makefile

Makefile

(OP)
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.  The command that I type at the promt right now to create my executable is...

bcc32 ncampus.cpp bldgs.cpp texmap.cpp ground.cpp glut32.lib opengl32.lib

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!).
What I have so far is:

TARGET=final
CFLAGS=-c -Ic:\BORLAND\bcc55\INCLUDE  -Lc:\BORLAND\bcc55\LIB
CC=bcc32

OBJECTS = ncampus.obj bldgs.obj texmap.obj ground.obj

final.exe : $(OBJECTS)
  $(CC) $(CFLAGS) -obj $(OBJECTS) -Lopengl32.lib -Lglut32.lib

ncampus.obj: ncampus.cpp
  $(CC) $(CFLAGS)  ncampus.cpp

bldgs.obj: bldgs.cpp
  $(CC) $(CFLAGS)  bldgs.cpp

texmap.obj: texmap.cpp
$(CC) $(CFLAGS) texmap.cpp

ground.obj: ground.cpp
$(CC) $(CFLAGS) ground.cpp

Can someone tell me what I'm doing wrong?

Thank you,
Laura Lucas
   

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close