Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ieee1905
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
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
Multi-AP
ieee1905
Commits
10670766
Commit
10670766
authored
3 years ago
by
Anjan Chanda
Browse files
Options
Downloads
Patches
Plain Diff
make: add install target
parent
dd4fe5a3
No related branches found
No related tags found
No related merge requests found
Pipeline
#53053
passed
3 years ago
Stage: static_code_analysis
Stage: compile_test
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Makefile
+12
-1
12 additions, 1 deletion
src/Makefile
src/Makefile.inc
+38
-0
38 additions, 0 deletions
src/Makefile.inc
src/extensions/map/Makefile
+8
-0
8 additions, 0 deletions
src/extensions/map/Makefile
with
58 additions
and
1 deletion
src/Makefile
+
12
−
1
View file @
10670766
...
@@ -3,6 +3,13 @@ CFLAGS+=-I. -D_GNU_SOURCE
...
@@ -3,6 +3,13 @@ CFLAGS+=-I. -D_GNU_SOURCE
CFLAGS
+=
-ggdb3
-Wall
-Werror
CFLAGS
+=
-ggdb3
-Wall
-Werror
CFLAGS
+=
-I
/usr/include/libnl3
CFLAGS
+=
-I
/usr/include/libnl3
header-files
=
cmdu.h cmdu_ackq.h 1905_tlvs.h i1905_wsc.h bufutil.h
\
timer_impl.h i1905_extension.h
lib-files
=
libmidgen.so libieee1905.so
bin-files
=
ieee1905d
OBJS
=
cmdu_input.o
\
OBJS
=
cmdu_input.o
\
cmdu_output.o
\
cmdu_output.o
\
config.o
\
config.o
\
...
@@ -52,7 +59,7 @@ extmod_files = $(foreach d, $(extmod_subdirs), $(extmod_sofile))
...
@@ -52,7 +59,7 @@ extmod_files = $(foreach d, $(extmod_subdirs), $(extmod_sofile))
.PHONY
:
all clean tests docs
.PHONY
:
all clean tests docs
install
all
:
libmidgen.so libieee1905.so ieee1905d extmods tests
all
:
libmidgen.so libieee1905.so ieee1905d extmods tests
...
@@ -84,6 +91,10 @@ docs:
...
@@ -84,6 +91,10 @@ docs:
cp
docs/latex/refman.pdf docs/ieee1905.pdf
cp
docs/latex/refman.pdf docs/ieee1905.pdf
-include
Makefile.inc
install
:
install-headers install-libs install-bins
for
i
in
$(
extmod_subdirs
);
do
[
-d
$$
i
]
&&
$(
MAKE
)
-C
$$
i
install
;
done
clean
:
clean
:
rm
-f
*
.o
*
.so
$(
EXECS
)
rm
-f
*
.o
*
.so
$(
EXECS
)
...
...
This diff is collapsed.
Click to expand it.
src/Makefile.inc
0 → 100644
+
38
−
0
View file @
10670766
CP
?=
cp
-fpPR
INSTALL
?=
install
INSTALL_DIR
=
$(
INSTALL
)
-d
-m
755
INSTALL_BIN
=
$(
INSTALL
)
-m
755
INSTALL_DATA
=
$(
INSTALL
)
-m
644
INSTALL_CONF
=
$(
INSTALL
)
-m
600
INSTALL_LIB
=
$(
CP
)
ROOTDIR
:=
$(
shell
pwd
)
INCDIR
?=
/usr/include
LIBDIR
?=
/usr/lib
BINDIR
?=
/usr/sbin
IEEE1905_PLUGINS_DIR
:=
$(
DESTDIR
)
/
$(
LIBDIR
)
/ieee1905
header-files
?=
$(
wildcard
*
.h
)
library-files
?=
$(
wildcard
*
.so
*
)
bin-files
?=
$(DESTDIR)/$(INCDIR)/%
:
%
$(
INSTALL_DATA
)
-D
$<
$@
$(DESTDIR)/$(LIBDIR)/%
:
%
$(
INSTALL_DIR
)
$(
DESTDIR
)
/
$(
LIBDIR
)
$(
INSTALL_LIB
)
$<
$@
$(DESTDIR)/$(BINDIR)/%
:
%
$(
INSTALL_DIR
)
$(
DESTDIR
)
/
$(
BINDIR
)
$(
INSTALL_BIN
)
$<
$@
export
install-headers
:
$(addprefix $(DESTDIR)/$(INCDIR)/
,
$(header-files))
install-libs
:
$(addprefix $(DESTDIR)/$(LIBDIR)/
,
$(library-files))
install-bins
:
$(addprefix $(DESTDIR)/$(BINDIR)/
,
$(bin-files))
This diff is collapsed.
Click to expand it.
src/extensions/map/Makefile
+
8
−
0
View file @
10670766
...
@@ -24,5 +24,13 @@ libmaputil.so: $(UTIL-OBJS)
...
@@ -24,5 +24,13 @@ libmaputil.so: $(UTIL-OBJS)
$(MAP_PLUGIN)
:
$(OBJS)
$(MAP_PLUGIN)
:
$(OBJS)
$(
CC
)
$(
CFLAGS
)
$(
LDFLAGS
)
-shared
-Wl
,-soname,
$@
-o
$@
$^
-lmaputil
$(
CC
)
$(
CFLAGS
)
$(
LDFLAGS
)
-shared
-Wl
,-soname,
$@
-o
$@
$^
-lmaputil
header-files
=
map2.h map_module.h
install
:
$(
INSTALL_DIR
)
$(
IEEE1905_PLUGINS_DIR
)
$(
CP
)
$(
MAP_PLUGIN
)
$(
IEEE1905_PLUGINS_DIR
)
$(
CP
)
libmaputil.so
$(
DESTDIR
)
/
$(
LIBDIR
)
$(
INSTALL_DATA
)
$(
header-files
)
$(
DESTDIR
)
/
$(
INCDIR
)
clean
:
clean
:
rm
-f
*
.o
*
.so
*
rm
-f
*
.o
*
.so
*
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