Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
张听杨
compiler
Commits
d0e0bd1f
Unverified
Commit
d0e0bd1f
authored
3 years ago
by
MaxXing
Browse files
Options
Download
Patches
Plain Diff
(Makefile) fixed some faults
parent
8f6a31a1
master
debug
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+4
-4
Makefile
with
4 additions
and
4 deletions
+4
-4
Makefile
+
4
−
4
View file @
d0e0bd1f
...
...
@@ -34,12 +34,12 @@ SRC_DIR := $(TOP_DIR)/src
FB_SRCS
:=
$(
patsubst
$(
SRC_DIR
)
/%.l,
$(
BUILD_DIR
)
/%.lex.cpp,
$(
shell find
$(
SRC_DIR
)
-name
*
.l
))
FB_SRCS
+=
$(
patsubst
$(
SRC_DIR
)
/%.y,
$(
BUILD_DIR
)
/%.tab.cpp,
$(
shell find
$(
SRC_DIR
)
-name
*
.y
))
SRCS
:=
$(
FB_SRCS
)
$(
shell find
$(
SRC_DIR
)
-name
*
.c
-or
-name
*
.cpp
-or
-name
*
.cc
)
OBJS
:=
$(
patsubst
$(
BUILD_DIR
)
/%.c,
$(
BUILD_DIR
)
/%.c.o,
$(
SRCS
))
OBJS
:=
$(
patsubst
$(
BUILD_DIR
)
/%.cpp,
$(
BUILD_DIR
)
/%.cpp.o,
$(
OBJS
))
OBJS
:=
$(
patsubst
$(
BUILD_DIR
)
/%.cc,
$(
BUILD_DIR
)
/%.cc.o,
$(
OBJS
))
OBJS
:=
$(
patsubst
$(
SRC_DIR
)
/%.c,
$(
BUILD_DIR
)
/%.c.o,
$(
OBJS
))
OBJS
:=
$(
patsubst
$(
SRC_DIR
)
/%.c,
$(
BUILD_DIR
)
/%.c.o,
$(
SRCS
))
OBJS
:=
$(
patsubst
$(
SRC_DIR
)
/%.cpp,
$(
BUILD_DIR
)
/%.cpp.o,
$(
OBJS
))
OBJS
:=
$(
patsubst
$(
SRC_DIR
)
/%.cc,
$(
BUILD_DIR
)
/%.cc.o,
$(
OBJS
))
OBJS
:=
$(
patsubst
$(
BUILD_DIR
)
/%.c,
$(
BUILD_DIR
)
/%.c.o,
$(
OBJS
))
OBJS
:=
$(
patsubst
$(
BUILD_DIR
)
/%.cpp,
$(
BUILD_DIR
)
/%.cpp.o,
$(
OBJS
))
OBJS
:=
$(
patsubst
$(
BUILD_DIR
)
/%.cc,
$(
BUILD_DIR
)
/%.cc.o,
$(
OBJS
))
# Header directories & dependencies
INC_DIRS
:=
$(
shell find
$(
SRC_DIR
)
-type
d
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets