1
0
mirror of https://github.com/co-dan/ocaml-wiringpi/ synced 2025-11-03 14:13:51 +01:00

First commit, a first version of wiringPiOcaml works, and the shift register can be used !

This commit is contained in:
Tobias Bora
2013-12-03 10:49:04 +01:00
commit 59b417485f
8 changed files with 295 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
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)
clean:
rm -f *.cmo *.cmi *.cmx