OASIS-ify source tree

This commit is contained in:
Marek Kubica 2014-07-06 23:07:29 +02:00
parent 5e6fc8eecc
commit 64e023e2e7
6 changed files with 15 additions and 19 deletions

View File

@ -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

15
_oasis Normal file
View File

@ -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