diff --git a/Makefile b/Makefile deleted file mode 100644 index 90138bf..0000000 --- a/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# This Makefile is really not optimized... -CC=ocamlc -OPT=-custom - -MAIN=sapin_noel.ml -SOURCES=wiringPiOcaml_stub.c wiringPiOcaml.ml shiftReg.ml -PACKAGES=unix parmap - -OBJECTS=$(SOURCES) -OUTPUT=$(MAIN:.ml=.bin) - - -all: $(OBJECTS) - $(CC) $(OPT) -cclib -lwiringPi unix.cma $(SOURCES) $(MAIN) -o $(OUTPUT) - $(CC) $(OPT) -cclib -lwiringPi unix.cma $(SOURCES) test_led.ml -o test_led.bin - -clean: - rm -f *.cmo *.cmi *.cmx - diff --git a/_oasis b/_oasis new file mode 100644 index 0000000..f4e1a51 --- /dev/null +++ b/_oasis @@ -0,0 +1,15 @@ +OASISFormat: 0.4 +Name: WiringPi +Version: 0.0.1 +Synopsis: Binding to the WiringPi library for hardware access +Authors: Tobias Bora, Marek Kubica +License: GPL-3.0 +Plugins: META (0.4), DevFiles (0.4) + +Library "WiringPi" + Path: src/ + BuildTools: ocamlbuild + Modules: WiringPi + CSources: WiringPi_stubs.c + CCLib: -lwiringPi + diff --git a/wiringPiOcaml.ml b/src/WiringPi.ml similarity index 100% rename from wiringPiOcaml.ml rename to src/WiringPi.ml diff --git a/wiringPiOcaml_stub.c b/src/WiringPi_stubs.c similarity index 100% rename from wiringPiOcaml_stub.c rename to src/WiringPi_stubs.c diff --git a/sapin_noel.ml b/test/sapin_noel.ml similarity index 100% rename from sapin_noel.ml rename to test/sapin_noel.ml diff --git a/test_led.ml b/test/test_led.ml similarity index 100% rename from test_led.ml rename to test/test_led.ml