[Gridflow-cvs] [svn] commit: r6543 - in /trunk: Makefile src/gridflow.hxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sat Feb 5 12:38:24 EST 2011


Author: matju
Date: Sat Feb  5 12:38:23 2011
New Revision: 6543

Log:
introduce -DLIBGF for future use of dllimport/dllexport on windows

Modified:
    trunk/Makefile
    trunk/src/gridflow.hxx

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Sat Feb  5 12:38:23 2011
@@ -69,17 +69,17 @@
 %.m.fcs: %.m $(COMMON_DEPS2)
 	$(FILT) $< $@
 %.o: %.cxx.fcs $(COMMON_DEPS2)
-	$(CXX) -xc++ $(CFLAGS) -c $< -o $@
+	$(CXX) -xc++ -DLIBGF $(CFLAGS) -c $< -o $@
 %.1.o: %.cxx.fcs $(COMMON_DEPS2)
-	$(CXX) -xc++ $(CFLAGS) -DPASS1 -c $< -o $@
+	$(CXX) -xc++ -DLIBGF $(CFLAGS) -DPASS1 -c $< -o $@
 %.2.o: %.cxx.fcs $(COMMON_DEPS2)
-	$(CXX) -xc++ $(CFLAGS) -DPASS2 -c $< -o $@
+	$(CXX) -xc++ -DLIBGF $(CFLAGS) -DPASS2 -c $< -o $@
 %.3.o: %.cxx.fcs $(COMMON_DEPS2)
-	$(CXX) -xc++ $(CFLAGS) -DPASS3 -c $< -o $@
+	$(CXX) -xc++ -DLIBGF $(CFLAGS) -DPASS3 -c $< -o $@
 %.4.o: %.cxx.fcs $(COMMON_DEPS2)
-	$(CXX) -xc++ $(CFLAGS) -DPASS4 -c $< -o $@
+	$(CXX) -xc++ -DLIBGF $(CFLAGS) -DPASS4 -c $< -o $@
 %.o: %.m.fcs $(COMMON_DEPS2)
-	$(CXX) -xc++ $(CFLAGS) $(SNAFU) -xobjective-c++ -c $< -o $@
+	$(CXX) -xc++ -DLIBGF $(CFLAGS) $(SNAFU) -xobjective-c++ -c $< -o $@
 %.s: %.cxx.fcs $(COMMON_DEPS2)
 	$(CXX) $(CFLAGS) -S $< -o $@
 %.e: %.cxx.fcs $(COMMON_DEPS2)

Modified: trunk/src/gridflow.hxx
==============================================================================
--- trunk/src/gridflow.hxx (original)
+++ trunk/src/gridflow.hxx Sat Feb  5 12:38:23 2011
@@ -79,6 +79,16 @@
 #define DEF_IN(CONTEXT) static const char *context = CONTEXT; context=context;
 #endif
 #define DEF_OUT
+
+#ifdef MSW
+#ifdef LIBGF
+#define EXTERN __declspec(dllexport) extern
+#else
+#define EXTERN __declspec(dllimport) extern
+#endif /* PD_INTERNAL */
+#else
+#define EXTERN extern
+#endif /* MSW */
 
 typedef t_binbuf t_list;
 struct Grid;



More information about the Gridflow-cvs mailing list