mirror of
https://github.com/co-dan/ocaml-wiringpi/
synced 2025-11-02 13:53:52 +01:00
OASIS-ify source tree
This commit is contained in:
19
Makefile
19
Makefile
@@ -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
15
_oasis
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user