Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nagios-plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lysator
nagios-plugins
Commits
be32ee43
Commit
be32ee43
authored
Dec 27, 2006
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Remember the last OS that the utilities was built for. Added 'install' target.
parent
8e751e85
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lyskom/Makefile
+12
-2
12 additions, 2 deletions
src/lyskom/Makefile
with
12 additions
and
2 deletions
src/lyskom/Makefile
+
12
−
2
View file @
be32ee43
# Makefile for lyskom Nagios utilities
# Makefile for lyskom Nagios utilities
LIBEXECDIR
=
/usr/local/nagios/libexec/
PROGS
=
notify_lyskom check_lyskom
COBJS
=
lyskom.o buffer.o
COBJS
=
lyskom.o buffer.o
CFLAGS
=
-g
-O
CFLAGS
=
-g
-O
boo
:
boo
:
@
echo
"Enter 'make linux' or 'make solaris'"
@
if
[
-f
.lastos
]
;
then
$(
MAKE
)
`
cat
.lastos
`
||
exit
1
;
\
else
echo
"Enter 'make linux' or 'make solaris'"
;
fi
linux
:
linux
:
echo
linux
>
.lastos
$(
MAKE
)
LIBS
=
"-lrt"
CC
=
"
$(
CC
)
"
CFLAGS
=
"
$(
CFLAGS
)
"
all
$(
MAKE
)
LIBS
=
"-lrt"
CC
=
"
$(
CC
)
"
CFLAGS
=
"
$(
CFLAGS
)
"
all
solaris
:
solaris
:
echo
solaris
>
.lastos
$(
MAKE
)
LIBS
=
"-lrt -lnsl -lsocket"
CC
=
"
$(
CC
)
"
CFLAGS
=
"
$(
CFLAGS
)
"
all
$(
MAKE
)
LIBS
=
"-lrt -lnsl -lsocket"
CC
=
"
$(
CC
)
"
CFLAGS
=
"
$(
CFLAGS
)
"
all
all
:
notify_lyskom check_lyskom
all
:
$(PROGS)
notify_lyskom
:
notify_lyskom.o $(COBJS)
notify_lyskom
:
notify_lyskom.o $(COBJS)
$(
CC
)
-o
notify_lyskom notify_lyskom.o
$(
COBJS
)
$(
LIBS
)
$(
CC
)
-o
notify_lyskom notify_lyskom.o
$(
COBJS
)
$(
LIBS
)
...
@@ -24,3 +29,8 @@ check_lyskom: check_lyskom.o $(COBJS)
...
@@ -24,3 +29,8 @@ check_lyskom: check_lyskom.o $(COBJS)
distclean clean
:
distclean clean
:
-
rm
-f
core notify_lyskom check_lyskom
*
.o
*
~
\#
*
-
rm
-f
core notify_lyskom check_lyskom
*
.o
*
~
\#
*
install
:
$(
MAKE
)
boo
for
i
in
$(
PROGS
);
\
do
install
$$
i
$(
DESTDIR
)$(
LIBEXECDIR
)
/
$$
i
||
exit
1
;
done
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