-
Notifications
You must be signed in to change notification settings - Fork 4
/
makefile.inc
55 lines (52 loc) · 1.2 KB
/
makefile.inc
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
LIBDIR=lib
SRCDIR=src
BINDIR=bin
CLIBS=SDL
LIBS=graphics unix str bigarray
SDL_SOURCE=$(LIBDIR)/sdl_stub.c $(LIBDIR)/sdl.mli $(LIBDIR)/sdl.ml
GL_SOURCE=$(LIBDIR)/glcaml_stub.c $(LIBDIR)/glcaml.mli $(LIBDIR)/glcaml.ml
ifdef NOSDL
WIN_SOURCE=$(LIBDIR)/win_stub.c $(LIBDIR)/win.mli $(LIBDIR)/win.ml
SDL_SOURCE=
CLIBS=GL
ifdef WIN32
CLIBS=opengl32 gdi32
endif
LIBS=graphics unix str bigarray
endif
# OCAMLFLAGS += -g
#OCAMLNCFLAGS += -p
#OCAMLLDFLAGS += -p
#OCAMLBCFLAGS += -p
#OCAMLBLDFLAGS += -p
CC=gcc
SOURCES=$(WIN_SOURCE) $(SDL_SOURCE) $(GL_SOURCE) \
$(SRCDIR)/prob.ml \
$(SRCDIR)/base.ml \
$(SRCDIR)/fencing.ml \
$(SRCDIR)/item.ml \
$(SRCDIR)/inv.ml \
$(SRCDIR)/common.ml \
$(SRCDIR)/global.ml \
$(SRCDIR)/trade.ml \
$(SRCDIR)/org.ml \
$(SRCDIR)/simtrade.ml \
$(SRCDIR)/simorg.ml \
$(SRCDIR)/carvebase.ml \
$(SRCDIR)/carve.ml \
$(SRCDIR)/genreg.ml \
$(SRCDIR)/globalmove.ml \
$(SRCDIR)/genmap.ml \
$(SRCDIR)/vision.ml \
$(SRCDIR)/politics.ml \
$(SRCDIR)/top.ml \
$(SRCDIR)/simobj.ml \
$(SRCDIR)/console.ml \
$(SRCDIR)/barter.ml \
$(SRCDIR)/state.ml \
$(SRCDIR)/sim.ml \
$(SRCDIR)/grafx.ml \
$(SRCDIR)/view.ml \
$(SRCDIR)/main.ml
RESULT=wanderers
-include OCamlMakefile