-
-
Save toots/4b0ebab9ac6979daa5f422dcd609a8f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(executable | |
(name gen_types_c) | |
(modules gen_types_c) | |
(libraries sys-socket.types ctypes.stubs)) | |
(rule | |
(targets gen_types.c) | |
(deps (:gen ./gen_types_c.exe)) | |
(action (run %{gen} %{targets}))) | |
(rule | |
(targets gen_types_c) | |
(deps (:c_code ./gen_types.c)) | |
(action (run %{ocaml-config:c_compiler} -I %{lib:ctypes:} -I %{ocaml-config:standard_library} -o %{targets} %{c_code}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment