-Started to move stuff from library back to main game
[supertux.git] / mk / jam / application.jam
index e561df0..eea3907 100644 (file)
@@ -28,7 +28,7 @@ rule Application
     CheckOptions noinstall console independent : $(3) : $(<) ;
 
     local target = [ ConstructApplicationTarget $(<) : $(3) ] ;
-    local sources = [ DoSourceGrist $(>) ] ;
+    local sources = [ SearchSource $(>) ] ;
     local objects = [ CompileObjects $(sources) ] ;
 
     $(<)_TYPE = application ;
@@ -71,16 +71,18 @@ rule Application
     SystemLinkApplication $(<) : $(objects) : $(3) ;
 
     # Import default flags
-    CppFlags $(<) : $(CPPFLAGS) $(APPLICTION_CPPFLAGS) ;
-    CFlags $(<) : $(CFLAGS) $(APPLICATION_CFLAGS) ;
-    C++Flags $(<) : $(C++FLAGS) $(APPLICATION_C++FLAGS) ;
-    LFlags $(<) : $(LFLAGS) $(APPLICATION_LFLAGS) ;
+    CppFlags $(<) : $(APPLICTION_CPPFLAGS) ;
+    CFlags $(<) : $(APPLICATION_CFLAGS) ;
+    C++Flags $(<) : $(APPLICATION_CXXFLAGS) ;
+    LFlags $(<) : $(APPLICATION_LIBS) ;
 
     # Sources are part of the package
     if ! [ IsElem nopackage : $(3) ]
     {
         Package $(sources) ;
     }
+
+    return $(target) ;
 }
 
 #----------------------------------------------------------------------------