This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gcc compile/install question
- From: "Jim M." <msg124 at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 01 Feb 2002 23:02:51 +0000
- Subject: gcc compile/install question
- Bcc:
converted the CFLAGS (followed your suggestions) to
be compatible with the gcc driver compiles ok, but
geting a failure to attach and no print messages when
tried to install the driver.
sun compiler compatible makefile:
CC = /usr/local/bin/gcc
#DEFS = -D_KERNEL -DSOLARIS2_7
CFLAGS = -D_KERNEL -xarch=v9 -xcode=abs32
-regs=no%appl -xO3
LD = ld
LDFLAGS = -r
SRCS = myapp.c myapp_impl.h myapp_io.h
DOCS =
%.o : %.c
$(CC) $(CFLAGS) $(DEFS) -c $<
myapp: myapp.o
$(LD) $(LDFLAGS) myapp.o -o myapp
install: myapp
echo "You must be superuser to install"
cp -p myapp /kernel/drv/sparcv9/
cp -p myapp.conf /kernel/drv/
add_drv -i '"pci1057,1801"' -m '* 0666 bin
bin' myapp
reinstall: myapp
echo "You must be superuser to re-install"
rem_drv myapp
cp myapp /kernel/drv/sparcv9/
add_drv -i '"pci1057,1801"' -m '* 0666 bin
bin' myapp
clean:
$(RM) myapp.o myapp .myapp*
pack: myapp clean
tar cvf myapp.tar myapp $(SRCS) Makefile
$(DOCS)
compress myapp.tar
myapp.o : myapp.c
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com