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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/11/07 13:52
Read: times


 
#130637 - About inventing time in make...
Responding to: ???'s previous message
Hi people,

so I followed Andy Neils suggestions I am fighting with the makefile.

And I am starting to be desperate.

What I am having a problem is with generating the dependencies automaticly. I am using Windows so my hands are tied (no sed usage or awk).

I've read plenty of posts and solution but neither of them works for me.

1. I have read http://make.paulandlesley.org/autodep.html but because of windows enviroment sed is not working.
2. Than I read http://lists.gnu.org/archive/h...00008.html but the shells are no more available so I was still unable to use sed.

I have a huge project with lot of files in lot of different subdirectories. The SDCC has the feature to detect dependencies and write them to the file.
What I need is a help to put all the stuff together so it works:

My makefile till now looks like this (collecting dependencies
to .d files):

INCDIR = -IHAL/LL/sd_spi/sw/fw/drivers -IHAL/TL -IHAL/COMMON 
VPATH= HAL/Common;HAL/TL;HAL/LL/sd_spi/sw/fw/drivers

COMPILER_PARAM = --model-small --vc --debug -V --use-stdout  -o".\OutputSDCC\sdcctest.hex"
LINKER_PARAM = --code-loc 0x0000 --data-loc 0x30 --stack-after-data --xram-loc 0x0000
COMPILER_C=sdcc
COMPILER_ASM=asx8051
COMPILER_LIB=sdcclib

SRCS=main.c spi.c test.c 
        
MAKEDEPEND = sdcc -M $< $(INCDIR) > $*.d

%.rel : %.c 
	$(MAKEDEPEND)
	$(COMPILER_C) $(COMPILER_PARAM) $(INCDIR) -c $<

	
sdcctest.hex: main.rel spi.rel test.rel

include $(SRCS:.c=.d)


I could really apritiate if someone could help me or give me an example makefile how to put all the things together.

greetings

Attila



List of 35 messages in thread
TopicAuthorDate
Code transform from A51 -> C51 Keil            01/01/70 00:00      
   I don't think so, I'm afraid            01/01/70 00:00      
   there is NO WAY you can do that. C does not, in a            01/01/70 00:00      
      You are right I can't be sure            01/01/70 00:00      
         API            01/01/70 00:00      
            The problem is with the API development...            01/01/70 00:00      
               Welcome to the world of cross-platform development            01/01/70 00:00      
                  Use A51 compiled object files in SDCC...            01/01/70 00:00      
                     Did you say what you mean?            01/01/70 00:00      
                        Yes I was actualy meaning GENERATED...            01/01/70 00:00      
                  About inventing time in make...            01/01/70 00:00      
                     Inventing            01/01/70 00:00      
                     well, since you hide your e-mail (the 8052 e-mail            01/01/70 00:00      
                        Please, please could you send it?            01/01/70 00:00      
                     Unix utilities for Windows            01/01/70 00:00      
                        SDCC paths            01/01/70 00:00      
               The 'C' preprocessor            01/01/70 00:00      
               if you use a sensible approach it is easy            01/01/70 00:00      
                  I don't know about 'easy'...            01/01/70 00:00      
         HLL's are for people who are too lazy ...            01/01/70 00:00      
            re: HLLs are for people            01/01/70 00:00      
               what\\\'s He-Man?            01/01/70 00:00      
                  Def: He-Man            01/01/70 00:00      
            ยต-controllers are for people who are too lazy ...            01/01/70 00:00      
               I don't want to discuss about HLL's effyciency            01/01/70 00:00      
               Oops            01/01/70 00:00      
                  dyslexics untie!            01/01/70 00:00      
            30% to 90%?            01/01/70 00:00      
               Neil, I kind of agree            01/01/70 00:00      
   You can be sure it does.            01/01/70 00:00      
   Code transform from A51 -> SDCC            01/01/70 00:00      
      This is also a thing I missed..            01/01/70 00:00      
         similar concept to MAC routines, locking to binary            01/01/70 00:00      
   is it possible ?            01/01/70 00:00      
      yes            01/01/70 00:00      

Back to Subject List