This is the mail archive of the gcc@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]

Linktime problems on linix i586



Help,

	I have been trying to use egcs to compile DBMS/DBML
project for a class I am taking in DB design and implamentation. 
I have included the make file I wrote.  I have not upgraded to
egcs-971123 stapshot yet, I am using egcs-971114.

--> m@t ( Matthew W. Coan )
--> mindb@www.student.fsu.umd.edu

=================================================================

# M.  Matthew 
# I.  Ilya 
# N.  Nick 
# D.  Dan 
# B.  Bin
#
# mindb Or A verrey small DBMS/DBML.
#

MINDB = /my_home                  # Where the mindb code lives.
EGCS = ${MINDB}/egcs-971114       # Where the egcs compilers live.
CC = ${EGCS}/gcc/xgcc             # The experamental egcs gcc
CFLAGS = -g                       # Flags sent to the C compiler.
CXX = ${EGCS}/gcc/g++             # EGCS GNU C++ compiler.
CXXFLAGS = -g -fexceptions        # Flags sent to the c++ compiler.
CXXINCLUDES = -I${MINDB}/stl \    # Include directorys for the c++ compiler.
-I${EGCS}/libio \                 #
-I${EGCS}/libstdc++               #
CINCLUDES = -I${EGCS}/gcc/include # Include directorys for the c compiler.
                 
LIBS = -L${EGCS} \          # This is the hard part that dose not seam to 
-L${EGCS}/gcc/libgcc1.a \   # be working.  I tell the c/c++ compiler where 
-L${EGCS}/gcc/libgcc2.a \   # the libs live but it still gives something 
-L${EGCS}/gcc/libgcc.a      # like -lgcc ***File not found.
-L${EGCS}/libraries/libio/libio.a \ #######################
-L${EGCS}/libraries/libio/libiostream.a \
-L${EGCS}/libraries/libstdc++/libstdc++.a 

LEX = lex          # The lex compiler.
YACC = yacc        # The yacc compiler.
YFLAGS = -d        # Flags to send to the yacc compler.
MAKE = make        # The make program.
RM = /bin/rm -rf   # The rm program.
LD = ld            # The GNU linker.

# ======================================
# The mindb systems backend object code.
#
OBJS = CList.o Token.o lex.yy.o y.tab.o 

# ====================================
# Genarate the target ouput executable
# image "mindb". ( It dose not work yet! )
#
mindb  : ${OBJS} main.o
	${CXX} ${CINCLUDES} ${CXXFLAGS}  \
            ${CXXINCLUDES} ${LIBS} ${OBJS} main.o -o $@ 

main.o : main.cpp
	${CXX} ${CXXFLAGS} ${CINCLUDES} ${LIBS} ${CXXINCLUDES} $? -c 

y.tab.o : y.tab.c
	${CC} ${CFLAGS} ${CINCLUDES} ${LIBS} -c $?

lex.yy.o : lex.yy.c
	${CC} ${CINCLUDES} ${CFLAGS} ${LIBS} -c $?

Token.o : Token.c
	${CC} ${CINCLUDES} ${CFLAGS} ${LIBS} -c $?

CList.o : CList.c
	${CC} ${CINCLUDES} ${CFLAGS} ${LIBS} -c $?

y.tab.c : mindb.y
	${YACC} ${YFLAGS} $?

lex.yy.c : mindb.l
	${LEX} $?

clean :
	${RM} -rf *.o mindb lex.yy.c y.tab.c 




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