Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
f3599bb4
Commit
f3599bb4
authored
May 03, 2012
by
Yukihiro Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
library file name renamed to libmruby.a on all platforms
parent
050cb3d7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
21 deletions
+7
-21
mrblib/Makefile
mrblib/Makefile
+1
-6
src/Makefile
src/Makefile
+4
-9
tools/mrbc/Makefile
tools/mrbc/Makefile
+1
-3
tools/mruby/Makefile
tools/mruby/Makefile
+1
-3
No files found.
mrblib/Makefile
View file @
f3599bb4
...
...
@@ -12,12 +12,7 @@ RLIB := $(TARGET).rbtmp
DEPLIB
:=
$(TARGET)
.d
MRB1
:=
$(BASEDIR)
/
*
.rb
MRBS
:=
$(MRB1)
LIB
:=
../lib/mruby
ifeq
($(OS),Windows_NT)
LIBR
:=
$(LIB)
.lib
else
LIBR
:=
$(LIB)
.a
endif
LIBR
:=
../lib/libmruby.a
# C compiler (gcc)
CC
=
gcc
...
...
src/Makefile
View file @
f3599bb4
...
...
@@ -4,12 +4,7 @@
# project-specific macros
# extension of the executable-file is modifiable(.exe .out ...)
BASEDIR
=
.
TARGET
:=
../lib/mruby
ifeq
($(OS),Windows_NT)
LIB
:=
$(TARGET)
.lib
else
LIB
:=
$(TARGET)
.a
endif
TARGET
:=
../lib/libmruby.a
YSRC
:=
$(BASEDIR)
/parse.y
YC
:=
$(BASEDIR)
/y.tab.c
EXCEPT1
:=
$(YC)
$(BASEDIR)
/minimain.c
...
...
@@ -40,11 +35,11 @@ ALL_CFLAGS = -Wall -Werror-implicit-function-declaration $(CFLAGS)
# generic build targets, rules
.PHONY
:
all
all
:
$(
LIB
)
all
:
$(
TARGET
)
@
echo
"make: built targets of
`
pwd
`
"
# executable constructed using linker from object files
$(
LIB
)
:
$(OBJS) $(OBJY)
$(
TARGET
)
:
$(OBJS) $(OBJY)
$(AR)
r
$@
$(OBJS)
$(OBJY)
-include
$(OBJS:.o=.d) $(OBJY:.o=.d)
...
...
@@ -65,6 +60,6 @@ $(YC) : $(YSRC)
.PHONY
:
clean
#
cleandep
clean
:
@
echo
"make: removing targets, objects and depend files of
`
pwd
`
"
-
rm
-f
$(
LIB
)
$(OBJS)
$(OBJY)
$(YC)
-
rm
-f
$(
TARGET
)
$(OBJS)
$(OBJY)
$(YC)
-
rm
-f
$(OBJS:.o=.d)
$(OBJY:.o=.d)
-
rm
-f
$(
patsubst
%.c,%.o,
$(EXCEPT1)
)
$(
patsubst
%.c,%.d,
$(EXCEPT1)
)
tools/mrbc/Makefile
View file @
f3599bb4
...
...
@@ -5,13 +5,11 @@
# extension of the executable-file is modifiable(.exe .out ...)
BASEDIR
:=
../../src
TARGET
:=
../../bin/mrbc
LIB
:=
../../lib/mruby
LIB
R
:=
../../lib/libmruby.a
ifeq
($(OS),Windows_NT)
EXE
:=
$(TARGET)
.exe
LIBR
:=
$(LIB)
.lib
else
EXE
:=
$(TARGET)
LIBR
:=
$(LIB)
.a
endif
EXCEPT1
:=
OBJ0
:=
$(
patsubst
%.c,%.o,
$(
wildcard
$(BASEDIR)
/../tools/mrbc/
*
.c
))
...
...
tools/mruby/Makefile
View file @
f3599bb4
...
...
@@ -5,13 +5,11 @@
# extension of the executable-file is modifiable(.exe .out ...)
BASEDIR
=
../../src
TARGET
:=
../../bin/mruby
LIB
:=
../../lib/mruby
LIB
R
:=
../../lib/libmruby.a
ifeq
($(OS),Windows_NT)
EXE
:=
$(TARGET)
.exe
LIBR
:=
$(LIB)
.lib
else
EXE
:=
$(TARGET)
LIBR
:=
$(LIB)
.a
endif
OBJ0
:=
$(
patsubst
%.c,%.o,
$(
wildcard
$(BASEDIR)
/../tools/mruby/
*
.c
))
#OBJ1 := $(patsubst %.c,%.o,$(filter-out $(EXCEPT1),$(wildcard $(BASEDIR)/*.c)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment