Initial upload

This commit is contained in:
Luxferre
2023-09-20 20:45:45 +03:00
commit 8d1bcde90a
4 changed files with 150 additions and 0 deletions
+19
View File
@@ -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