Skip to content

Commit

Permalink
added a library make target
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Schulte committed May 23, 2012
1 parent 193e501 commit 6868ac8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -2,7 +2,7 @@

# see src/Makefile for more information

all: doc code
all: doc code lib

.PHONY: clean doc test

Expand All @@ -12,6 +12,9 @@ doc:
code:
$(MAKE) -C src/ $(MAKECMDGOALS)

lib:
$(MAKE) -C src/ $(MAKECMDGOALS)

clean:
$(MAKE) -C src/ $(MAKECMDGOALS); \
$(MAKE) -C test/ $(MAKECMDGOALS)
Expand Down
2 changes: 2 additions & 0 deletions obj/.gitignore
@@ -0,0 +1,2 @@
*
!.gitignore
5 changes: 5 additions & 0 deletions src/Makefile
Expand Up @@ -79,6 +79,11 @@ REPAIR_MODULES = \
network.cmo \
main.cmo

../obj/genprog.cmx: $(REPAIR_MODULES:.cmo=.cmx)
$(OCAMLOPT) -a -o $@ $^ -cclib -l_elf_stubs $(ELF_OPTS_OCAML)

lib: ../obj/genprog.cmx

repair: $(REPAIR_MODULES:.cmo=.cmx)
$(OCAMLOPT) -o $@ bigarray.cmxa unix.cmxa str.cmxa nums.cmxa cil.cmxa $^ -cclib -l_elf_stubs $(ELF_OPTS_OCAML)

Expand Down

0 comments on commit 6868ac8

Please sign in to comment.