# Copyright (c) 2007-2023 Vincent ROGIER # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. CC = g++ CFLAGS = -Wall -DOCI_CHARSET_ANSI EXEC_NAME = ocilib_tests INCLUDES = -I/usr/local/include -I/afs/cern.ch/user/l/lippmann/TPCconfigDCS/ocilib/include LIBS = -L/usr/lib/oracle/19.19/client64//lib -lclntsh -L/afs/cern.ch/user/l/lippmann/TPCconfigDCS/ocilib/lib -locilib -lgtest -lgtest_main -lpthread SOURCES := $(wildcard *.cpp) OBJS := $(addsuffix .o, $(basename $(notdir $(SOURCES)))) all: $(EXEC_NAME) $(EXEC_NAME): $(OBJS) $(CC) -o $(EXEC_NAME) $(OBJS) $(LIBS) %.o: %.cpp $(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $< clean: rm -f *~ $(EXEC_NAME) rm -f *~ $(OBJS)