Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help me compile this firmware

Status
Not open for further replies.

smythe

Computer
Nov 21, 2002
4
0
0
US
I have the following makefile in my project listed at the bottom of this post. I need to compile this so it produces a motorola S-19 record, which I believe is already set as an option in the makefile.

I'm trying to compile the following way from the command prompt.

imakew -f makefile.mak

where imakew is a makefile compiler from ImageCraft, where I belive the engineers who wrote the code got their compiler.

But I get the following error:

"cd usb; make all
The system cannot find the path specified.
imakew.exe Error Code 1"

I tried using GNU make like this:

make -f makefile.mak

and I get a similar error message:

"cd usb; make all
The system cannot find the path specified.
MAKE: *** [usb_lib] Error 1"

What can I be doing wrong? How can I compile this?? Please Help!! I can provide more information if needed, thanks in advance.

Here is the makefile:
-----------------------

# -lc12p

CC = icc12w
CFLAGS = -DDEBUG -Ic:\\progra~1\\icc12\\include -e -l -v -Wf-cpdon
LFLAGS = -Lc:\\progra~1\\icc12\\lib -m -btext:0xc000 -bdata:0x0800 -bextcode:0x0.0x1FFFF -dinit_sp:0x0c00 -fmots19
OBJS = main.o gpio.o eeprom.o soundbank.o version.o update.o security.o termio.o queue.o vectors.o

.c.o:
$(CC) $(CFLAGS) -c $?

impro: $(OBJS) usb_lib imcore_lib i2c_lib
$(CC) -o impro $(LFLAGS) $(OBJS) -llp12p -lc12p -lusb -limcore -li2c -lspi


usb_lib:
cd usb; make all

imcore_lib:
cd imcore; make all

i2c_lib:
cd i2c/asm; make all

clean:
rm -rf *.o *.s19 *.lis *.lk *.s *.dp2 *.src *.lst *.mp *.i *.a
 
Replies continue below

Recommended for you

I assume you are trying to run this from windows no?

The command syntax shown here is done for unix. On unix, you can separate commands using ";". On dos, this is not feasible.

If I remember well, using gnu, you could try to replace the lines that way:

instead of:
cd usb; make all
try:
make -C usb all

Do the same for
cd imcore; make all
cd i2c/asm; make all
 
Status
Not open for further replies.
Back
Top