Skip to content

Commit

Permalink
chore: cleanup capi examples
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Apr 29, 2024
1 parent 81c27d4 commit 3ae2259
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
9 changes: 9 additions & 0 deletions capi/examples/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
all: capi capi-ipasir

capi: capi.cpp
g++ -I.. -c capi.cpp -o capi.o
g++ capi.o ../../target/release/librustsat_capi.a -o capi.out

capi-ipasir: capi-ipasir.cpp
g++ -I.. -I${IPASIR_INC} -c capi-ipasir.cpp -o capi-ipasir.o
g++ capi-ipasir.o ../../target/release/librustsat_capi.a ${IPASIR_LIB} -o capi-ipasir.out
2 changes: 1 addition & 1 deletion capi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//! project. For now, only the API of certain encodings is available.
//!
//! For the API itself, see `rustsat.h`. To use RustSAT from an external project, build this crate
//! and link against `librustsat.a` (produced by `cargo` in `target/release`).
//! and link against `librustsat_capi.a` (produced by `cargo` in `target/release`).

pub mod encodings {
//! # C-API For Encodings
Expand Down
7 changes: 0 additions & 7 deletions rustsat/examples/Makefile

This file was deleted.

0 comments on commit 3ae2259

Please sign in to comment.