Skip to content
Newer
Older
100644 42 lines (36 sloc) 934 Bytes
e0d6430 add mruby sources
mimaki authored Apr 20, 2012
1 # makefile discription.
db99923 @matz build process restructured
matz authored Apr 30, 2012
2 # basic build file for mruby
e0d6430 add mruby sources
mimaki authored Apr 20, 2012
3
4 # compiler, linker (gcc)
5 CC = gcc
6 LL = gcc
7 DEBUG_MODE = 1
8 ifeq ($(DEBUG_MODE),1)
db99923 @matz build process restructured
matz authored Apr 30, 2012
9 CFLAGS = -g -O3
e0d6430 add mruby sources
mimaki authored Apr 20, 2012
10 else
11 CFLAGS = -O3
12 endif
13 ALL_CFLAGS = -Wall -Werror-implicit-function-declaration $(CFLAGS)
db99923 @matz build process restructured
matz authored Apr 30, 2012
14 ifeq ($(OS),Windows_NT)
15 MAKE_FLAGS = --no-print-directory CC=$(CC) LL=$(LL) ALL_CFLAGS='$(ALL_CFLAGS)'
16 else
17 MAKE_FLAGS = --no-print-directory CC='$(CC)' LL='$(LL)' ALL_CFLAGS='$(ALL_CFLAGS)'
18 endif
e0d6430 add mruby sources
mimaki authored Apr 20, 2012
19
20 ##############################
21 # generic build targets, rules
22
23 .PHONY : all
db99923 @matz build process restructured
matz authored Apr 30, 2012
24 all :
4390ff1 @matz Makefile: run make at src first
matz authored May 1, 2012
25 @$(MAKE) -C src $(MAKE_FLAGS)
0026d5f @matz run make -c mrblib from top
matz authored May 2, 2012
26 @$(MAKE) -C mrblib $(MAKE_FLAGS)
db99923 @matz build process restructured
matz authored Apr 30, 2012
27 @$(MAKE) -C tools/mruby $(MAKE_FLAGS)
917d70e @bovi mirb - Embeddable Interactive Ruby Shell
bovi authored May 12, 2012
28 @$(MAKE) -C tools/mirb $(MAKE_FLAGS)
29
8085817 @matz make test restructuring
matz authored May 14, 2012
30 # mruby test
31 .PHONY : test
32 test :
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored May 14, 2012
33 @$(MAKE) -C test $(MAKE_FLAGS)
34
e0d6430 add mruby sources
mimaki authored Apr 20, 2012
35 # clean up
36 .PHONY : clean
37 clean :
db99923 @matz build process restructured
matz authored Apr 30, 2012
38 @$(MAKE) clean -C src $(MAKE_FLAGS)
39 @$(MAKE) clean -C tools/mruby $(MAKE_FLAGS)
917d70e @bovi mirb - Embeddable Interactive Ruby Shell
bovi authored May 11, 2012
40 @$(MAKE) clean -C tools/mirb $(MAKE_FLAGS)
c8c0ef8 @bovi mrit - Embeddable Ruby ISO Test
bovi authored May 14, 2012
41 @$(MAKE) clean -C test $(MAKE_FLAGS)
Something went wrong with that request. Please try again.