#-------------------------------------------------------------------------------- # # Makefile for the School database example # Copyright (c) 1999-2003 by Leonidas Fegaras, the University of Texas at # Arlington, All rights reserved. # Programmer: Leonidas Fegaras # Date: 9/28/98 # #-------------------------------------------------------------------------------- include ../../ldb.include all: populate # build the user database and catalog build: $(ODL) -build # compile the ODL schema school.odl school.h: school.odl $(ODL) school.odl # compile the OQL file method.oql with methods methods.o: methods.oql school.h $(OQL) methods.oql $(GCC) $(SERVER_FLAGS) -c methods.tmp.cc -o methods.o # compile the OQL file populate.oql that populates the database populate-simple: populate.oql methods.o school.h $(OQL) populate.oql $(GCC) $(SERVER_FLAGS) populate.tmp.cc methods.o $(OQLPARSER) $(SERVER_LIBS) -o populate-simple ./populate-simple # populate the school database with sample data # compile the OQL file populate-random.oql that populates the database populate: populate-random.oql methods.o school.h $(OQL) populate-random.oql $(GCC) $(SERVER_FLAGS) populate-random.tmp.cc methods.o $(OQLPARSER) $(SERVER_LIBS) -o populate ./populate # populate the school database with sample data # compile the OQL file query.oql with test queries query: query.oql methods.o school.h $(OQL) query.oql $(GCC) $(SERVER_FLAGS) query.tmp.cc methods.o $(OQLPARSER) $(SERVER_LIBS) -o query # compile the OQL file test.oql with more test queries test: test.oql methods.o school.h $(OQL) test.oql $(GCC) $(SERVER_FLAGS) test.tmp.cc methods.o $(OQLPARSER) $(SERVER_LIBS) -o test # compile the OQL file benchmarks.oql with benchmarks queries benchmarks: benchmarks.oql methods.o school.h $(OQL) benchmarks.oql $(GCC) $(SERVER_FLAGS) benchmarks.tmp.cc methods.o $(OQLPARSER) $(SERVER_LIBS) -o benchmarks # compile and run the C++ client file client_query.cc client_query: client_query.cc $(GCC) $(LINKFLAGS) $(ODBC) client_query.cc -o client_query C++_client: client_query ./client_query # compile the Java client file client_query.java client_query.class: client_query.java $(JAVAC) client_query.java # run the Java client file client_query.java Java_client: client_query.class $(JAVA) Main clean: /bin/rm -f *.o *~ *.class school.h *.tmp.* populate populate-simple query client_query test benchmarks core*