This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

question: gcc makefile


Hi,
How may i convert this to wotk woth gcc?. it works
with sun 
compiler.



<sun> cat Makefile
CC = /opt/SUNWspro/bin/cc
#DEFS = -D_KERNEL -DSOLARIS2_7
 
CFLAGS = -D_KERNEL -xarch=v9 -xcode=abs32
-xregs=no%appl -xO3
 
LD = ld
LDFLAGS = -r
 
SRCS = myprog.c myprog_impl.h myprog_io.h
DOCS =
 
%.o : %.c
        $(CC) $(CFLAGS) $(DEFS) -c $<
 
myprog: myprog.o
        $(LD) $(LDFLAGS) myprog.o -o myprog
 
install: myprog
        echo "You must be superuser to install"
        cp -p myprog /kernel/drv/sparcv9/
        cp -p myprog.conf /kernel/drv/
        add_drv -i '"pci1057,1801"' -m '* 0666 bin
bin' myprog
 
reinstall: myprog
        echo "You must be superuser to re-install"
        rem_drv myprog
        cp myprog /kernel/drv/sparcv9/
        add_drv -i '"pci1057,1801"' -m '* 0666 bin
bin' myprog
 
clean:
        $(RM) myprog.o myprog .myprog*
 
pack: myprog clean
        tar cvf myprog.tar  myprog $(SRCS) Makefile
$(DOCS)
        compress myprog.tar
 
myprog.o : myprog.c


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]