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:
17
Makefile
Normal file
17
Makefile
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user