Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
ae6c58e4
Commit
ae6c58e4
authored
Oct 15, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #48 from craigbarnes/make
Improved Makefile
parents
5bd4581b
026aabcd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
12 deletions
+27
-12
Makefile
Makefile
+27
-12
No files found.
Makefile
View file @
ae6c58e4
CC
=
g++
CFLAGS
=
-c
-Wall
-O2
-fPIC
LDFLAGS
=
-fPIC
SOURCES
=
\
constants.cpp context.cpp functions.cpp document.cpp
\
CC
=
g++
CFLAGS
=
-Wall
-O2
-fPIC
LDFLAGS
=
-fPIC
PREFIX
=
/usr/local
LIBDIR
=
$(PREFIX)
/lib
SOURCES
=
constants.cpp context.cpp functions.cpp document.cpp
\
document_parser.cpp eval_apply.cpp node.cpp
\
node_factory.cpp node_emitters.cpp prelexer.cpp
\
sass_interface.cpp
OBJECTS
=
$
(
SOURCES:.cpp
=
.o
)
all
:
$(OBJECTS)
ar rvs libsass.a
$(OBJECTS)
static
:
libsass.a
shared
:
libsass.so
libsass.a
:
$(OBJECTS)
ar rvs
$@
$(OBJECTS)
shared
:
$(OBJECTS)
$(CC)
-shared
-o
libsass.so
*
.o
libsass.so
:
$(OBJECTS)
$(CC)
-shared
$(LDFLAGS)
-o
$@
$(OBJECTS)
.cpp.o
:
$(CC)
$(CFLAGS)
$<
-o
$@
$(CC)
$(CFLAGS)
-c
-o
$@
$<
install
:
libsass.a
install
-Dpm0755
$<
$(DESTDIR)$(LIBDIR)
/
$<
install-shared
:
libsass.so
install
-Dpm0755
$<
$(DESTDIR)$(LIBDIR)
/
$<
clean
:
rm
-rf
*
.o
*
.a
*
.so
\ No newline at end of file
rm
-f
$(OBJECTS)
*
.a
*
.so
.PHONY
:
static shared install install-shared clean
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