Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
e8ad0763
Commit
e8ad0763
authored
11 years ago
by
Jan Trávníček
Browse files
Options
Downloads
Patches
Plain Diff
rework makefiles for adiff
parent
9511f9f2
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
adiff.automaton/makefile
+20
-0
20 additions, 0 deletions
adiff.automaton/makefile
adiff.grammar/makefile
+20
-0
20 additions, 0 deletions
adiff.grammar/makefile
adiff/makefile
+20
-0
20 additions, 0 deletions
adiff/makefile
makefile
+17
-13
17 additions, 13 deletions
makefile
with
77 additions
and
13 deletions
adiff.automaton/makefile
0 → 100644
+
20
−
0
View file @
e8ad0763
CC
=
g++
EXECUTIBLE
=
adiff.automaton
CCFLAGS
=
-std
=
c++11
-O2
-c
-Wall
-I
../alib/src
LDFLAGS
=
-L
../alib/lib
-lxml2
-lalib
SOURCES
=
$(
shell find src/
-name
*
cpp
)
OBJECTS
=
$(
patsubst src/%.cpp, obj/%.o,
$(
SOURCES
))
all
:
$(SOURCES) bin/$(EXECUTIBLE)
bin/$(EXECUTIBLE)
:
$(OBJECTS)
mkdir
-p
bin
$(CC)
$(LDFLAGS)
$(OBJECTS)
-o
$@
obj/%.o
:
src/%.cpp
mkdir
-p
$(
dir
$@
)
$(CC)
$(CCFLAGS)
$<
-o
$@
clean
:
$(RM)
-r
*.o
*.d
bin
obj
This diff is collapsed.
Click to expand it.
adiff.grammar/makefile
0 → 100644
+
20
−
0
View file @
e8ad0763
CC
=
g++
EXECUTIBLE
=
adiff.grammar
CCFLAGS
=
-std
=
c++11
-O2
-c
-Wall
-I
../alib/src
LDFLAGS
=
-L
../alib/lib
-lxml2
-lalib
SOURCES
=
$(
shell find src/
-name
*
cpp
)
OBJECTS
=
$(
patsubst src/%.cpp, obj/%.o,
$(
SOURCES
))
all
:
$(SOURCES) bin/$(EXECUTIBLE)
bin/$(EXECUTIBLE)
:
$(OBJECTS)
mkdir
-p
bin
$(CC)
$(LDFLAGS)
$(OBJECTS)
-o
$@
obj/%.o
:
src/%.cpp
mkdir
-p
$(
dir
$@
)
$(CC)
$(CCFLAGS)
$<
-o
$@
clean
:
$(RM)
-r
*.o
*.d
bin
obj
This diff is collapsed.
Click to expand it.
adiff/makefile
0 → 100644
+
20
−
0
View file @
e8ad0763
CC
=
g++
EXECUTIBLE
=
adiff
CCFLAGS
=
-std
=
c++11
-O2
-c
-Wall
-I
../alib/src
LDFLAGS
=
-L
../alib/lib
-lxml2
-lalib
SOURCES
=
$(
shell find src/
-name
*
cpp
)
OBJECTS
=
$(
patsubst src/%.cpp, obj/%.o,
$(
SOURCES
))
all
:
$(SOURCES) bin/$(EXECUTIBLE)
bin/$(EXECUTIBLE)
:
$(OBJECTS)
mkdir
-p
bin
$(CC)
$(LDFLAGS)
$(OBJECTS)
-o
$@
obj/%.o
:
src/%.cpp
mkdir
-p
$(
dir
$@
)
$(CC)
$(CCFLAGS)
$<
-o
$@
clean
:
$(RM)
-r
*.o
*.d
bin
obj
This diff is collapsed.
Click to expand it.
makefile
+
17
−
13
View file @
e8ad0763
...
...
@@ -2,24 +2,28 @@ APPPATH = /usr/bin
LIBPATH
=
/usr/lib/
BINFOLDER
=
bin
SUBDIRS
=
alib acat aconvert aconvert.dot aconvert.gastex aminimize adeterminize adeterminize.fsm
.PHONY
:
subdirs $(SUBDIRS)
all
:
$(SUBDIRS) copy
SUBDIRS_LIBS
=
alib adeterminize
SUBDIRS_BINS
=
acat aconvert aconvert.dot aconvert.gastex aminimize adeterminize.fsm adiff adiff.automaton adiff.grammar
$(SUBDIRS)
:
.PHONY
:
$(SUBDIRS_LIBS) $(SUBDIRS_BINS)
all
:
$(SUBDIRS_LIBS) $(SUBDIRS_BINS) copy
$(SUBDIRS_LIBS)
:
$(MAKE)
-C
$@
$(SUBDIRS_BINS)
:
$(MAKE)
-C
$@
copy
:
rm
-rf
$(BINFOLDER)
mkdir
$(BINFOLDER)
cp
alib/lib/libalib.so
$(BINFOLDER)
cp
adeterminize/lib/libadeterminize.so
$(BINFOLDER)
cp
acat/bin/acat
$(BINFOLDER)
cp
aconvert/bin/aconvert
$(BINFOLDER)
cp
aconvert.dot/bin/aconvert.dot
$(BINFOLDER)
cp
aconvert.gastex/bin/aconvert.gastex
$(BINFOLDER)
cp
aminimize/bin/aminimize
$(BINFOLDER)
cp
adeterminize.fsm/bin/adeterminize.fsm
$(BINFOLDER)
for
dir
in
$(SUBDIRS_LIBS);
do
\
cp
$$dir/lib/*
$(BINFOLDER);
\
done
for
dir
in
$(SUBDIRS_BINS);
do
\
cp
$$dir/bin/*
$(BINFOLDER);
\
done
install
:
cp
alib/lib/libalib.so
$(LIBPATH)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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