Thread: borland 5.5 makefile

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    380

    borland 5.5 makefile

    I'm trying to get my makefile to include debugging information, but it won't listen. With Borland 5.5 the -v switch tells it to include this debug info which is suppose to be enabled by default. How do I make my makefile correct?

    Code:
    APP      = pacman1 
    EXEFILE  = $(APP).exe
    OBJFILES = $(APP).obj hiscore.obj draw.obj ai.obj
    RESFILES = $(APP).res
    LIBFILES = alleg.lib
    DEFFILE  =
    
    .AUTODEPEND
    BCC32   = bcc32
    ILINK32 = ilink32
    BRC32   = brc32
    
    CFLAGS  = -c -tWM- -w -w-par -w-inl -W -a1 -Od 
    LFLAGS  = -aa -V4.0 -c -x -Gn
    RFLAGS  = -X -R
    STDOBJS = c0w32.obj
    STDLIBS = import32.lib cw32.lib
    
    $(EXEFILE) : $(OBJFILES)
    	$(ILINK32) $(LFLAGS) $(OBJFILES) $(STDOBJS), $(EXEFILE), , \
    		$(LIBFILES) $(STDLIBS), $(DEFFILE), $(RESFILES)
    
    clean:
    	del *.obj	
    	del *.tds
    	del *.map
    	del *.bak
    
    cleanall:
    	del *.obj
    	del *.res
    	del *.tds
    	del *.map
    	del *.bak
    Don't you dare hit me on the head, you know I'm not normal.
    A Stooge Site
    Green Frog Software

  2. #2
    Registered User Dev's Avatar
    Join Date
    Mar 2003
    Posts
    59
    Add that debug parameter to CFLAGS.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    I have added -v to CFLAGS and I only get debug info at the assembly level. I want source level.
    Don't you dare hit me on the head, you know I'm not normal.
    A Stooge Site
    Green Frog Software

  4. #4
    Registered User Dev's Avatar
    Join Date
    Mar 2003
    Posts
    59
    I am not using Borland C++ compiler. But you can check the compilers documentation for the source level debugging option.

    As in gcc compilers. If you add -ggdb option while compiling we get source level debugging info in our exe. So that GDB ( gnu debugger) can debug it at the source level.

    Use gdb its very nice debugger. And MinGW compiler (gdb comes with it) for compiling programs.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile Problem: None rule to make target
    By chris24300 in forum Linux Programming
    Replies: 25
    Last Post: 06-17-2009, 09:45 AM
  2. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 PM
  3. unix makefile won't work but works in Dev C++
    By jk1998 in forum C++ Programming
    Replies: 1
    Last Post: 06-09-2007, 03:54 PM
  4. makefile blues....
    By WaterNut in forum C Programming
    Replies: 6
    Last Post: 05-30-2005, 08:22 PM
  5. Need help with Makefile
    By xshapirox in forum C++ Programming
    Replies: 14
    Last Post: 09-28-2004, 03:32 PM