Initial upload
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# static POSIX makefile template for OCaml
|
||||
# depends on musl-gcc (optionally also zig cc)
|
||||
# and opam install ocaml-option-static ocaml-option-flambda
|
||||
|
||||
CC = musl-gcc
|
||||
# CC = zig cc -target x86_64-linux-musl
|
||||
CFLAGS = -Os -static -s -flto
|
||||
LDFLAGS = -s -static -flto
|
||||
OC = ocamlopt
|
||||
OCFLAGS = -O2 -compact -cc "$(CC)" -ccopt "$(CFLAGS)" -cclib "$(LDFLAGS)"
|
||||
|
||||
TARGET = osmol
|
||||
DEPS = -I +unix unix.cmxa
|
||||
|
||||
$(TARGET): $(TARGET).ml
|
||||
$(OC) $(DEPS) $(OCFLAGS) -o $(TARGET) $(TARGET).ml
|
||||
|
||||
clean:
|
||||
rm $(TARGET) *.cmi *.cmx *.o
|
||||
Reference in New Issue
Block a user