From 64e023e2e73b1f24c77b351a6b69c6ce5581e172 Mon Sep 17 00:00:00 2001 From: Marek Kubica Date: Sun, 6 Jul 2014 23:07:29 +0200 Subject: [PATCH] OASIS-ify source tree --- Makefile | 19 ------------------- _oasis | 15 +++++++++++++++ wiringPiOcaml.ml => src/WiringPi.ml | 0 wiringPiOcaml_stub.c => src/WiringPi_stubs.c | 0 sapin_noel.ml => test/sapin_noel.ml | 0 test_led.ml => test/test_led.ml | 0 6 files changed, 15 insertions(+), 19 deletions(-) delete mode 100644 Makefile create mode 100644 _oasis rename wiringPiOcaml.ml => src/WiringPi.ml (100%) rename wiringPiOcaml_stub.c => src/WiringPi_stubs.c (100%) rename sapin_noel.ml => test/sapin_noel.ml (100%) rename test_led.ml => test/test_led.ml (100%) 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