aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-10-11 15:05:38 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-10-11 15:05:38 +0200
commit1efec3952b780cc675ae111313017c3b91d20a01 (patch)
tree8a2d77b52e2c558976c8d2d362edf8837e2066ea /src/Makefile
downloaderlang-slang-fork-1efec3952b780cc675ae111313017c3b91d20a01.tar.gz
initial commit based on erlang-slang 1.0 release (debian tar ball)
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..b383c01
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,23 @@
+
+
+
+ifeq ($(TYPE),debug)
+DEBUG_FLAGS = -Ddebug
+else
+DEBUG_FLAGS =
+endif
+
+include ../include.mk
+include ../vsn.mk
+
+ERLC_FLAGS+=-W $(DEBUG_FLAGS)
+MODULES = slang
+
+TARGETS = $(MODULES:%=../ebin/%.beam) ../ebin/slang.app
+
+
+all debug: $(TARGETS)
+clean:
+ rm -f $(TARGETS)
+../ebin/slang.app: slang.app.src
+ cat slang.app.src | sed 's/%VSN%/${SLANG_VSN}/' > ../ebin/slang.app