DIR_PATH=/users/hfisk/csc/47074/ FULL_PATH_55=$(DIR_PATH)mysql-5.5.4-m3-linux2.6-x86_64 FULL_PATH_51=$(DIR_PATH)mysql-advanced-gpl-5.1.46-linux-x86_64-glibc23 all: 51 55 run-51 run-55 clean: rm *o mysql_try_* core.* run-51: LD_PRELOAD=$(FULL_PATH_51)/lib/libmysqlclient.so.16 ./mysql_try_51 --basedir=$(FULL_PATH_51) run-55: LD_PRELOAD=$(FULL_PATH_55)/lib/libmysqlclient.so.16 ./mysql_try_55 --basedir=$(FULL_PATH_55) 51: g++ -I$(FULL_PATH_51)/include/ -I. -c ./main.cpp g++ -o mysql_try_51 main.o -ldl -L $(FULL_PATH_51)/lib/ -l mysqld `$(FULL_PATH_51)/bin/mysql_config --libs` -laio -lpthread -ldl -lcrypt 55: g++ -I$(FULL_PATH_55)/include/ -I. -c ./main.cpp g++ -o mysql_try_55 main.o -ldl -L $(FULL_PATH_55)/lib/ -l mysqld `$(FULL_PATH_55)/bin/mysql_config --libs` -laio -lpthread -ldl -lcrypt