forked from severus21/ide_cachan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (33 loc) · 783 Bytes
/
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
34
35
36
37
38
39
DEBUG_OPTION=-g
SOURCE_DIR=src/
BUILD=ocamlbuild \
-I structure\
-I tests\
-build-dir "$(BUILD_DIR)" \
-package lablgtk2 -package oUnit -package compiler-libs.common\
$(SOURCE_DIR)
BUILD_DIR=debug/
TARGET=ide
default:
-rm $(TARGET).debug
$(BUILD)$(TARGET).native
ln -s $(BUILD_DIR)$(SOURCE_DIR)$(TARGET).native $(TARGET).debug
test :
BUILD_DIR=test/
TARGET=test
-rm -f test.debug
$(BUILD)test.native
ln -s $(BUILD_DIR)$(SOURCE_DIR)test.native test.debug
release:
DEBUG_OPTION=
TARGET=ide
BUILD_DIR=release/
-rm -f $(TARGET).release
$(BUILD)$(TARGET).native
ln -s $(BUILD_DIR)$(SOURCE_DIR)ide.native ide.release
clean:
-rm -rf debug/
-rm -rf release/
-rm oUnit*
ocamlbuild -clean