forked from serp256/lightning
/
Makefile.in
35 lines (23 loc) · 1.19 KB
/
Makefile.in
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
34
35
include target
MLPPOPT = ../src/syntax/pa_prop.cmo ../src/syntax/pa_debug.cmo -enable-debug default
MLFLAGS += -I ../src -package extlib -package ojson -I ../src/social -I ../src/tapjoy -I ../src/social/facebook
#MLFILES = panelbg.cmo testz.cmo
SOCIAL= ../src/social/OK.cmo ../src/social/VK.cmo -ccopt -L../src/social/oauth
OAUTH = ../src/social/oauth/oauth.cma
$(TARGET).byte: $(MLFILES) $(TARGET).cmo
$(OCAMLC) -custom -verbose -o test.byte -g \
-I ../src ../src/lightning.cma $(OAUTH) $(SOCIAL) $(MLFILES) ../src/social/facebook/fbconnect.cma $(TARGET).cmo \
-ccopt -lglut \
-package bigarray,unix,extlib,xmlm,ojson -linkpkg
example.cmo: $(MLFILES)
MLXFILES = $(MLFILES:.cmo=.cmx)
SOCIALX = $(SOCIAL:.cmo=.cmx)
OAUTHX = ../src/social/oauth/oauth.cmxa
$(TARGET).cmx: $(MLXFILES)
$(TARGET).native: $(MOBS) $(MLXFILES) $(TARGET).cmx
$(OCAMLOPT) -verbose -o test.native -g \
-I ../src ../src/lightning.cmxa $(OAUTHX) $(SOCIALX) $(MOBS) $(MLXFILES) -ccopt -L../src/tapjoy ../src/tapjoy/tapjoy.cmxa -ccopt -L../src/social/facebook ../src/social/facebook/fbconnect.cmxa $(TARGET).cmx \
-package extlib,xmlm,ojson,bigarray -linkpkg
.PHONY: clean
clean::
rm -f *.o *.cmo *.cmx *.cmi *.byte *.native