2013-12-17 21:23:04 +01:00
|
|
|
# This Makefile is really not optimized...
|
2013-12-03 10:49:04 +01:00
|
|
|
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)
|
2013-12-15 07:40:30 +01:00
|
|
|
$(CC) $(OPT) -cclib -lwiringPi unix.cma $(SOURCES) test_led.ml -o test_led.bin
|
2013-12-03 10:49:04 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.cmo *.cmi *.cmx
|
|
|
|
|