Added files for Linux and OS X
This commit is contained in:
parent
23ec3ede95
commit
8d0a9871d8
5 changed files with 81 additions and 25 deletions
10
Makefile
10
Makefile
|
@ -1,6 +1,7 @@
|
|||
BUILD := $(shell date -u +%Y%m%d-%H%M%S)
|
||||
OS := $(shell uname -s)
|
||||
|
||||
PREFIX = $(DESTDIR)/opt/CronosAgent
|
||||
TOOLKIT = ../..
|
||||
|
||||
DIRECTORIES = \
|
||||
|
@ -41,6 +42,15 @@ all: build
|
|||
build: $(PREREQUISITES) $(OBJECTS)
|
||||
$(CC) $(OBJECTS) $(FLAGS) $(LIBS) -o cronosagent
|
||||
|
||||
install:
|
||||
install -D -d $(PREFIX)
|
||||
install -o root -g root cronosagent $(PREFIX)
|
||||
install -o root -g root cronosagent.sh $(PREFIX)
|
||||
install -o root -g root cronosagent-init $(PREFIX)
|
||||
install -m 644 -o root -g root Main/brandmeister-monit $(PREFIX)
|
||||
install -m 644 -o root -g root Main/brandmeister.plist $(PREFIX)
|
||||
install -m 644 -o root -g root Main/brandmeister.service $(PREFIX)
|
||||
|
||||
clean:
|
||||
rm -f $(PREREQUISITES) $(OBJECTS) cronosagent
|
||||
rm -f *.d $(TOOLKIT)/*/*.d
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue