diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e9ba1fd --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ + +DESTDIR ?= +sbindir ?= /sbin +udevdir ?= /lib/udev/rules.d + +CFLAGS ?= -O2 +CFLAGS += -g -Wall + +TARGETS := vdagent + +build: $(TARGETS) + +install: build + install -d $(DESTDIR)$(sbindir) + install -s $(TARGETS) $(DESTDIR)$(sbindir) + install -d $(DESTDIR)$(udevdir) + install -d 644 *.rules $(DESTDIR)$(udevdir) + +clean: + rm -f $(TARGET) *.o *~ + +vdagent: vdagent.o |