Add Makefile for convenience

This commit is contained in:
Peter Wu
2013-04-24 10:22:08 +02:00
parent d9fe85b6c9
commit 3e2049b48b

14
Makefile Normal file
View File

@@ -0,0 +1,14 @@
CFLAGS ?= -g -O2 -Wall -Werror -Wextra
BINDIR ?= $(HOME)
%: %.c
$(CC) $(CFLAGS) -o $(OUTDIR)$@ $<
all: ltunify read-dev-usbmon
.PHONY: clean install-home
clean:
rm -f ltunify read-dev-usbmon hidraw
install-home: ltunify
install -m755 -D ltunify $(BINDIR)/ltunify