-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
33 lines (26 loc) · 1.48 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
###############################################################################
# ocaml-magic Makefile #
# #
# Copyright (c) 2014, Sang Kil Cha #
# All rights reserved. #
# This software is free software; you can redistribute it and/or #
# modify it under the terms of the GNU Library General Public #
# License version 2, with the special exception on linking #
# described in file LICENSE. #
# #
# This software is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. #
###############################################################################
OCAMLBUILD=ocamlbuild
all: depcheck
$(OCAMLBUILD) -Is src -Xs buildtools,payload ocamlExploit.cmxa
clean: depcheck
$(OCAMLBUILD) -clean
rm -rf stamp
depcheck: Makefile.dep
@buildtools/depcheck.sh $<
.SUFFIXES: .ml .native
%.native: payload/%.ml src/ocamlExploit.ml src/ocamlExploit.mli
$(OCAMLBUILD) -Is src,payload -Xs buildtools ocamlExploit.cmxa $@
.PHONY: all clean depcheck