blob: 6ac3ec4d7ffcef01977218589b27a1748d907044 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
daisydog: daisydog.c
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $<
$(DESTDIR)/usr/sbin/daisydog: daisydog
install --mode 555 -D -T $< $@
$(DESTDIR)/lib/udev/rules.d/51-watchdog.rules: 51-watchdog.rules
install --mode 640 -D -T $< $@
$(DESTDIR)/etc/init/daisydog.conf: daisydog.conf
install --mode 644 -D -T $< $@
all: daisydog
install: $(DESTDIR)/lib/udev/rules.d/51-watchdog.rules \
$(DESTDIR)/etc/init/daisydog.conf \
$(DESTDIR)/usr/sbin/daisydog
clean:
rm -f daisydog *.o
.PHONY: all install clean