Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Dnsmasq
Commits
81c538ef
Commit
81c538ef
authored
Jan 03, 2015
by
Yousong Zhou
Committed by
Simon Kelley
Jan 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement makefile dependencies on COPTS variable.
parent
d310ab7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
.gitignore
.gitignore
+1
-1
Makefile
Makefile
+6
-4
No files found.
.gitignore
View file @
81c538ef
...
@@ -3,7 +3,7 @@ src/*.mo
...
@@ -3,7 +3,7 @@ src/*.mo
src/dnsmasq.pot
src/dnsmasq.pot
src/dnsmasq
src/dnsmasq
src/dnsmasq_baseline
src/dnsmasq_baseline
src/.co
nfigured
src/.co
pts_*
contrib/wrt/dhcp_lease_time
contrib/wrt/dhcp_lease_time
contrib/wrt/dhcp_release
contrib/wrt/dhcp_release
debian/base/
debian/base/
...
...
Makefile
View file @
81c538ef
...
@@ -64,6 +64,8 @@ nettle_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC $(PKG_CONFIG
...
@@ -64,6 +64,8 @@ nettle_libs = `echo $(COPTS) | $(top)/bld/pkg-wrapper HAVE_DNSSEC $(PKG_CONFIG
gmp_libs
=
`
echo
$(COPTS)
|
$(top)
/bld/pkg-wrapper HAVE_DNSSEC NO_GMP
--copy
-lgmp
`
gmp_libs
=
`
echo
$(COPTS)
|
$(top)
/bld/pkg-wrapper HAVE_DNSSEC NO_GMP
--copy
-lgmp
`
sunos_libs
=
`
if
uname
|
grep
SunOS
>
/dev/null 2>&1
;
then
echo
-lsocket
-lnsl
-lposix4
;
fi
`
sunos_libs
=
`
if
uname
|
grep
SunOS
>
/dev/null 2>&1
;
then
echo
-lsocket
-lnsl
-lposix4
;
fi
`
version
=
-DVERSION
=
'\"`
$(top)
/bld/get-version
$(top)
`\"'
version
=
-DVERSION
=
'\"`
$(top)
/bld/get-version
$(top)
`\"'
copts_conf
=
.copts_
$(
shell
$(CC)
-DDNSMASQ_COMPILE_OPTS
$(COPTS)
-E
$(top)
/
$(SRC)
/dnsmasq.h |
\
(
md5sum
2>/dev/null
||
md5
)
|
cut
-f
1
-d
' '
)
objs
=
cache.o rfc1035.o util.o option.o forward.o network.o
\
objs
=
cache.o rfc1035.o util.o option.o forward.o network.o
\
dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o
\
dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o
\
...
@@ -83,7 +85,7 @@ all : $(BUILDDIR)
...
@@ -83,7 +85,7 @@ all : $(BUILDDIR)
mostly_clean
:
mostly_clean
:
rm
-f
$(BUILDDIR)
/
*
.mo
$(BUILDDIR)
/
*
.pot
rm
-f
$(BUILDDIR)
/
*
.mo
$(BUILDDIR)
/
*
.pot
rm
-f
$(BUILDDIR)
/.co
nfigured
$(BUILDDIR)
/
*
.o
$(BUILDDIR)
/dnsmasq.a
$(BUILDDIR)
/dnsmasq
rm
-f
$(BUILDDIR)
/.co
pts_
*
$(BUILDDIR)
/
*
.o
$(BUILDDIR)
/dnsmasq.a
$(BUILDDIR)
/dnsmasq
clean
:
mostly_clean
clean
:
mostly_clean
rm
-f
$(BUILDDIR)
/dnsmasq_baseline
rm
-f
$(BUILDDIR)
/dnsmasq_baseline
...
@@ -139,8 +141,8 @@ bloatcheck : $(BUILDDIR)/dnsmasq_baseline mostly_clean all
...
@@ -139,8 +141,8 @@ bloatcheck : $(BUILDDIR)/dnsmasq_baseline mostly_clean all
# rules below are targets in recusive makes with cwd=$(BUILDDIR)
# rules below are targets in recusive makes with cwd=$(BUILDDIR)
.configured
:
$(hdrs)
$(copts_conf)
:
$(hdrs)
@
rm
-f
*
.o
@
rm
-f
*
.o
.copts_
*
@
touch
$@
@
touch
$@
$(objs
:
.o=.c) $(hdrs):
$(objs
:
.o=.c) $(hdrs):
...
@@ -149,7 +151,7 @@ $(objs:.o=.c) $(hdrs):
...
@@ -149,7 +151,7 @@ $(objs:.o=.c) $(hdrs):
.c.o
:
.c.o
:
$(CC)
$(CFLAGS)
$(COPTS)
$(i18n)
$(build_cflags)
$(RPM_OPT_FLAGS)
-c
$<
$(CC)
$(CFLAGS)
$(COPTS)
$(i18n)
$(build_cflags)
$(RPM_OPT_FLAGS)
-c
$<
dnsmasq
:
.configured
$(hdrs) $(objs)
dnsmasq
:
$(copts_conf)
$(hdrs) $(objs)
$(CC)
$(LDFLAGS)
-o
$@
$(objs)
$(build_libs)
$(LIBS)
$(CC)
$(LDFLAGS)
-o
$@
$(objs)
$(build_libs)
$(LIBS)
dnsmasq.pot
:
$(objs:.o=.c) $(hdrs)
dnsmasq.pot
:
$(objs:.o=.c) $(hdrs)
...
...
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