Commits

Anonymous committed 477eeeb

cyclops substructure definitions

Comments (0)

Files changed (1)

 
 
 # Compilation options
-CPPFLAGS=-Wall -O3 -I$(OE_DIR)/toolkits/include `$(MYSQL_CONFIG) --cflags`
+CPPFLAGS=-Wall -O3 -I. -I$(OE_DIR)/toolkits/include `$(MYSQL_CONFIG) --cflags`
 
 # Linking options
 LIBS=-L$(OE_DIR)/toolkits/lib -loeiupac -loegraphsim -loechem -loesystem -loeplatform -lz -lm
 # Linking a shared library on a Mac is different than on a Linux box.
 # This is my solution. Is there a better and more portable one?
 
-cyclops_mysql.so: cyclops_mysql.o
+cyclops_mysql.so: cyclops_mysql.o substruct_keys.o
 	$(if `[-f /mach] && echo Mac`, \
-	$(CXX) -bundle -bundle_loader $(MYSQL_SERVER) -o cyclops_mysql.so cyclops_mysql.o $(LIBS), \
-	$(CXX) -shared -o cyclops_mysql.so cyclops_mysql.o $(LIBS) \
+	$(CXX) -bundle -bundle_loader $(MYSQL_SERVER) -o cyclops_mysql.so cyclops_mysql.o substruct_keys.o $(LIBS), \
+	$(CXX) -shared -o cyclops_mysql.so cyclops_mysql.o substruct_keys.o $(LIBS) \
     )
 
 
-cyclops_mysql.o: cyclops_mysql.cpp
+cyclops_mysql.o: cyclops_mysql.cpp substruct_keys.h
 	$(CXX) -c cyclops_mysql.cpp $(CPPFLAGS) -DVERSION=$(VERSION)
 
+substruct_keys.o: substruct_keys.cpp substruct_keys.h
+	$(CXX) -c substruct_keys.cpp $(CPPFLAGS) -DVERSION=$(VERSION)
+
 install: cyclops_mysql.so
 	cp cyclops_mysql.so $(INSTALL_DIR)