camlspotter avatar camlspotter committed 7e9024c

CheckCLib stopped working.. strange

Comments (0)

Files changed (2)

 
 include OMyMakeroot
 
-# For the author's personal use
-if $(defined WithOMyApt)
-  RequireAptPackages(libgif-dev libjpeg62-dev libtiff4-dev libpng12-dev libfreetype6-dev libxpm-dev)
-
 ########################################## You may want to change these
 
 # Specify non standard include directories
   /usr/include/X11
   /usr/local/include
 
+public.CheckCLib(libs, funs) =
+    LDFLAGS += $(addprefix -l, $(libs))
+
+    return $(TryLinkC $"""
+#ifdef __cplusplus
+extern "C"
+#endif
+#pragma warning( disable : 4100 )
+/* Override any gcc2 internal prototype to avoid an error.  */
+$(add-wrapper $(nl)extern char , $'();', $(funs))
+int main(int argc, char **argv) {
+    /* Usage */
+$(add-wrapper $(nl)    , $'();', $(funs))
+    return 0;
+}
+""")
+
 # Specify non standard library directories
-LDFLAGS[]+= 
+LDFLAGS[]+=
 # for example, 
 # LDFLAGS[]+= -L/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/
 
+open build/C
+open build/OCaml
+open build/LaTeX
+
+DefineCommandVars()
+
+.SUBDIRS: .
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.