delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/01/06/13:27:39

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: KTrumpetsRule AT cs DOT com
Message-ID: <200.10265183.30f00e11@cs.com>
Date: Fri, 6 Jan 2006 13:16:49 EST
Subject: Re: Have makefile - how to configure RHIDE?
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: CompuServe 2000 32-bit sub 103
X-Spam-Flag: NO
Reply-To: djgpp AT delorie DOT com

I know this is going to sound VERY simplistic to y'all.  But I've found it 
very informative.

I'm running DJGPP under Win98 SE.  I open a DOS box, set to 43 lines (I'd use 
more but the monitor's small).  I then open my editor (MultiEdit for Windows) 
in another window.

After writing some code, I [Shift][Tab] over to the DOS box and run this 
batch file:

del *.exe
del *.bak
make -f dedcxxxx.mak
del *.o
pause
cls

Here's the makefile (with a bunch of stuff cut out for brevity):

# ------------------------------------------
#       dedcxxxx.mak - this is make file for ENGINE DESIGNER v 00.0.0,
#                                       DOS version
# ------------------------------------------
#       DOS_MAK.BAT
#               del *.exe
#               del *.bak
#               make -f dedcxxxx.mak
#               del *.o
#               pause
#               cls

dedcxxxx.exe: eng_xxxx.o env_xxxx.o ful_xxxx.o bm_xxxx.o \
        cmb_xxxx.o out_xxxx.o dedcxxxx.o 386_xxxx.o

        gcc -o dedcxxxx.exe eng_xxxx.o env_xxxx.o ful_xxxx.o bm_xxxx.o \
        cmb_xxxx.o out_xxxx.o dedcxxxx.o 386_xxxx.o

env_xxxx.o : env_xxxx.c corexxxx.h \
                                typedef.h vars.h defines.h prototyp.h
        gcc -c -pedantic -ansi env_xxxx.c

out_xxxx.o : out_xxxx.c corexxxx.h \
                                typedef.h vars.h defines.h prototyp.h
        gcc -c -pedantic -ansi out_xxxx.c

386_xxxx.o : 386_xxxx.c 386_xxxx.h
        gcc -c 386_xxxx.c

dedcxxxx.o : dedcxxxx.c dedcxxxx.h
        gcc -c dedcxxxx.c

If you use all the "verbose" switches, you can get an amazing amount of 
information.  Like I said, it may be simplistic but it is informative.

Bill

****************************************************
               Keller Racing
          "Performance By Design"
             KellerRcng AT cs DOT com
http://ourworld.cs.com/KellerRcng/index.htm
****************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019