[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE: Installation of Developer Board LX Software




Hi,

No, I didn't modify the Makefile.  I've attached the Makefile file that
I have been using.  I think it's the original.  Thanks.

Johnson

----- Original Message -----
From: "Jonas Holmberg" <jonas.holmberg@xxxxxxx.com>
To: "'johnson@xxxxxxx.jp>
Cc: "dev-etrax" <dev-etrax@xxxxxxx.com>
Sent: Tuesday, June 12, 2001 9:01 PM
Subject: RE: Installation of Developer Board LX Software


> Hi,
>
> > make[1]: Entering directory
`/root/axis/devboard_lx/apps/shell'
> > Making install in sash
> > make[2]: Entering directory
`/root/axis/devboard_lx/apps/shell/sash'
> >
gcc_cris -mlinux -DCRISMMU -muclibc=/root/axis/devboard_lx/eroot
 -s
> > -static -L/root/axis/devboard_lx/eroot/lib ../src/sash.o
> > utils.o cmds.o
> > interactive.o cmd_uclinux.o cmd_ls.o -lreadline -ltermcap -o
sash
>
> This is strange, it ought to use sash.o in the same directory. When I
run
"make install" in apps/shell/sash (or apps/shell) I get:
> ...
>
gcc_cris -mlinux -DCRISMMU -muclibc=/home/jonashg/axis/axis/devboard
_lx/eroot -s -static -L/home/jonashg/axis/axis/devboard_lx/eroot/lib
sash.o utils.o cmds.o interactive.o cmd_uclinux.o
cmd_ls.o -lreadline -ltermcap
> -o sash
> ...
>
> Did you modify apps/shell/sash/Makefile? My apps/shell/sash/Makefile
includes the follwing line:
>
> OBJS      = sash.o utils.o cmds.o interactive.o cmd_uclinux.o
cmd_ls.o
>
> Do you have that in yours?
>
> Best Regards
> /Jonas
# apps/shell/sash/Makefile
# $Id: Makefile,v 1.12 2001/01/29 15:05:28 johana Exp $
USE_UCLIBC = 1
include $(APPS)/Rules.elinux
#Wait with nfs for CLINUX until it is fixed
ifdef CLINUX
# No NFS for now
else
NFS_INCLUDED = 1
SUBDIRS   +-= nfs
endif
# Uncomment the following 4 lines to add Juliette specific commands
#ifeq (jul,$(wildcard jul))
#JUL_INCLUDED = 1
#SUBDIRS   +-= jul
#endif

PROGS     = sash

srcdir    = ../src
VPATH     = .:$(srcdir)

INSTDIR   = $(prefix)/bin/
INSTMODE  = 0755
INSTOWNER = root
INSTGROUP = root

INCDIR    = $(prefix)/include
LIBDIR    = $(prefix)/lib

OBJS      = sash.o utils.o cmds.o interactive.o cmd_uclinux.o cmd_ls.o
ifdef NFS_INCLUDED 
OBJS     +-= nfs/nfs.o
else
CFLAGS   +-= -DNO_NFS
endif
ifdef JUL_INCLUDED
OBJS     +-= jul/jul.o
else
CFLAGS   +-= -DNO_CMD_JULIETTE
endif

SRCS      = sash.c utils.c cmds.c interactive.c cmd_uclinux.c cmd_ls.c

CFLAGS   +-= -I$(INCDIR) -DCMD_INTERACTIVE
LDFLAGS  +-= -L$(LIBDIR)
LDLIBS   +-= -lreadline -ltermcap

all: $(PROGS)

$(PROGS):	$(OBJS)
	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@

jul/jul.o:	dummy
	make -C jul

nfs/nfs.o:	dummy
	make -C nfs

install:	$(PROGS)
	$(INSTALL) -d $(INSTDIR)
	$(INSTALL) -m $(INSTMODE) -o $(INSTOWNER) -g $(INSTGROUP) $(PROGS) $(INSTDIR)

clean:
	rm -f $(PROGS) pic2tga *.o core

depend:	$(SRCS)
	makedepend -Y -I$(srcdir) -I$(srcdir)/jul -I$(srcdir)/nfs -- $(CFLAGS) -- $^ 2>/dev/null

pic2tga: jul/pic2tga.c
	gcc -O2 -o $@ $^

dummy:

# -------------------------------------------------------------------------
# The following is used to automatically generate dependencies.
# DO NOT DELETE

sash.o: ../src/sash.h
utils.o: ../src/sash.h
cmds.o: ../src/sash.h ../src/nfs/sundries.h
interactive.o: ../src/sash.h
cmd_uclinux.o: ../src/sash.h
cmd_ls.o: ../src/sash.h