Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/14/08 11:35
Read: times


 
#150808 - Make with 3 targets
Responding to: ???'s previous message
Please bear in mind that I'm not an expert on make, just a convert! Jan's rant about whitespace is also valid, as tab characters are part of the syntax (crazy but true). The targets defined in this file are all, SDisplay.hex, DT_lfa.hex, SDGain.hex, and clean.

objects      = display.rel time.rel lcd44780.rel uart.rel
qdvmobjects  = adc.rel main.rel
dtlfaobjects = syncdet.rel dualtone_lfa.rel math32.rel
gainobjects  = gain.rel syncdet2ch.rel math32.rel
lists        = display.lst lcd44780.lst time.lst uart.lst
qdvmlists    = adc.lst main.lst
dtlfalists   = syncdet2ch.lst dualtone_lfa.lst math32.lst
gainlists    = gain.lst syncdet2ch.lst math32.lst
inc = adc.h ADuC845.h boardhw.h command.h configuration.h display.h eepages.h hd44780.h lcd44780.h sstypes.h time.h uart.h version.h

all: SDisplay.hex DT_lfa.hex SDGain.hex

SDisplay.hex : $(objects) $(qdvmobjects) $(lists) $(qdvmlists) command.c configuration.c
	del SDisplay.*
	sdcc -c -DQUAD_DVM command.c
	sdcc -c -DQUAD_DVM configuration.c
	sdcc -o SDisplay.hex --xram-size 2048 command.rel configuration.rel $(qdvmobjects) $(objects)
	type SDisplay.mem	
     
DT_lfa.hex : $(objects) $(dtlfaobjects) $(lists) $(dtlfalists) command.c configuration.c
	del DT_lfa.*
	sdcc -c -DDUALTONE_LFA command.c
	sdcc -c -DDUALTONE_LFA configuration.c
	sdcc -o DT_lfa.hex --xram-size 2048 command.rel configuration.rel $(dtlfaobjects) $(objects)
	type DT_lfa.mem	
     
SDGain.hex : $(objects) $(gainobjects) $(lists) $(gainlists) command.c configuration.c
	del SDGain.*
	sdcc -c -DGAIN command.c
	sdcc -c -DGAIN configuration.c
	sdcc -o SDGain.hex --xram-size 2048 command.rel configuration.rel $(gainobjects) $(objects)
	type SDGain.mem	
     
adc.rel : adc.c $(inc) 
	sdcc -c adc.c
display.rel : display.c $(inc) 
	sdcc -c display.c
dualtone_lfa.rel : dualtone_lfa.c dualtone_lfa_cmnds.c $(inc) 
	sdcc -c dualtone_lfa.c
gain.rel : gain.c gain_cmnds.c $(inc) 
	sdcc -c gain.c
lcd44780.rel : lcd44780.c $(inc) 
	sdcc -c lcd44780.c
main.rel : main.c quad_dvm_cmnds.c $(inc) 
	sdcc -c main.c
math32.rel : math32.c
	sdcc -c math32.c
syncdet.rel : syncdet.c ddstables32.c ddstables48.c $(inc) 
	sdcc -c syncdet.c
syncdet2ch.rel : syncdet2ch.c ddstables32.c ddstables48.c $(inc) 
	sdcc -c syncdet2ch.c
time.rel : time.c $(inc) 
	sdcc -c time.c
uart.rel : uart.c $(inc) 
	sdcc -c uart.c

adc.lst : adc.c $(inc) 
	sdcc -c adc.c
display.lst : display.c $(inc) 
	sdcc -c display.c
dualtone_lfa.lst : dualtone_lfa.c $(inc) 
	sdcc -c dualtone_lfa.c
gain.lst : gain.c gain_cmnds.c $(inc) 
	sdcc -c gain.c
lcd44780.lst : lcd44780.c $(inc) 
	sdcc -c lcd44780.c
main.lst : main.c $(inc) 
	sdcc -c main.c
math32.lst : math32.c
	sdcc -c math32.c
syncdet.lst : syncdet.c ddstables32.c ddstables48.c $(inc) 
	sdcc -c syncdet.c
syncdet2ch.lst : syncdet2ch.c ddstables32.c ddstables48.c $(inc) 
	sdcc -c syncdet2ch.c
time.lst : time.c $(inc) 
	sdcc -c time.c
uart.lst : uart.c $(inc) 
	sdcc -c uart.c

clean :
	del *.asm
	del *.lst
	del *.sym


List of 27 messages in thread
TopicAuthorDate
Let's have a rant about IDEs...            01/01/70 00:00      
   re Eclipse            01/01/70 00:00      
      You got further than me, then!            01/01/70 00:00      
         re looking at Eclipse            01/01/70 00:00      
   Eclipse            01/01/70 00:00      
   What do you want integrated in your IDE?            01/01/70 00:00      
      More than that!            01/01/70 00:00      
         How about ...            01/01/70 00:00      
            you want ...            01/01/70 00:00      
      What I want from my IDE            01/01/70 00:00      
      no, it is not            01/01/70 00:00      
         not inherently            01/01/70 00:00      
            reply and an example            01/01/70 00:00      
         Multiple targets with make            01/01/70 00:00      
            true, but            01/01/70 00:00      
               IDE's            01/01/70 00:00      
               true!            01/01/70 00:00      
               make vs. batch            01/01/70 00:00      
                  That's a key!            01/01/70 00:00      
                  .. and make one, two or all?            01/01/70 00:00      
                     make of it what you will            01/01/70 00:00      
               Don't start from here!            01/01/70 00:00      
                  what's the difference?            01/01/70 00:00      
                     The right tool for the job            01/01/70 00:00      
                        please e-mail me or post a copy            01/01/70 00:00      
                           Make with 3 targets            01/01/70 00:00      
                        make?????            01/01/70 00:00      

Back to Subject List