And the solution
This commit is contained in:
		
							parent
							
								
									18f29579e0
								
							
						
					
					
						commit
						c785089647
					
				
					 3 changed files with 6 additions and 4 deletions
				
			
		
							
								
								
									
										4
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -4,8 +4,8 @@ OCAMLOPT_FLAGS:=-output-complete-obj
 | 
			
		|||
 | 
			
		||||
.PHONY: ocaml
 | 
			
		||||
ocaml:
 | 
			
		||||
	dune build ocaml/hello.a
 | 
			
		||||
	cp _build/default/ocaml/hello.a $(BUILD)/libfoo.a
 | 
			
		||||
	dune build --verbose ocaml/hello.exe.o
 | 
			
		||||
	ar -rs $(BUILD)/libfoo.a _build/default/ocaml/hello.exe.o
 | 
			
		||||
 | 
			
		||||
ocaml-manual:
 | 
			
		||||
	mkdir -p $(BUILD)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,2 +1,3 @@
 | 
			
		|||
(library
 | 
			
		||||
	(name hello))
 | 
			
		||||
(executable
 | 
			
		||||
	(name hello)
 | 
			
		||||
    (modes object))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,3 +2,4 @@ let hello () = "hello"
 | 
			
		|||
 | 
			
		||||
let () =
 | 
			
		||||
  Callback.register "Hello callback" hello;
 | 
			
		||||
  Callback.register "Bye callback" Bye.bye;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue