diff options
author | etobi <git@e-tobi.net> | 2013-09-03 09:48:41 +0200 |
---|---|---|
committer | etobi <git@e-tobi.net> | 2013-09-03 09:48:41 +0200 |
commit | ab959d7b4194715870128e616b8e29d4a101e488 (patch) | |
tree | 61a746231d30817be73416a7d67763fd677a1042 /util/ttusb_dec_reset | |
parent | 6b350466c4902c5b137e0efaf1d189128a7f18f5 (diff) | |
download | linux-dvb-apps-ab959d7b4194715870128e616b8e29d4a101e488.tar.gz |
Imported Upstream version 1.1.1+rev1207upstream/1.1.1+rev1207
Diffstat (limited to '')
-rw-r--r-- | util/ttusb_dec_reset/Makefile | 28 | ||||
-rw-r--r-- | util/ttusb_dec_reset/ttusb_dec_reset.c | 4 |
2 files changed, 18 insertions, 14 deletions
diff --git a/util/ttusb_dec_reset/Makefile b/util/ttusb_dec_reset/Makefile index cde7de5..b2ca852 100644 --- a/util/ttusb_dec_reset/Makefile +++ b/util/ttusb_dec_reset/Makefile @@ -1,17 +1,19 @@ -CC = gcc -RM = rm -f -CFLAGS = -g -Wall -O2 -LFLAGS = -g -Wall -LDFLAGS = -lusb +# Makefile for linuxtv.org dvb-apps/util/ttusb_dec_reset -OBJS = ttusb_dec_reset.o -TARGET = ttusb_dec_reset +binaries = ttusb_dec_reset -$(TARGET): $(OBJS) - $(CC) $(LFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJS) +ifneq ($(realpath $(binaries)),) +inst_bin = $(binaries) +endif -.c.o: - $(CC) $(CFLAGS) -c $< -o $@ +LDLIBS += -lusb -clean: - $(RM) *.o $(TARGET) +.PHONY: all + +ifeq ($(ttusb_dec_reset),1) +all: $(binaries) +else +all: clean +endif + +include ../../Make.rules diff --git a/util/ttusb_dec_reset/ttusb_dec_reset.c b/util/ttusb_dec_reset/ttusb_dec_reset.c index 51ddfc7..54b3f83 100644 --- a/util/ttusb_dec_reset/ttusb_dec_reset.c +++ b/util/ttusb_dec_reset/ttusb_dec_reset.c @@ -25,10 +25,12 @@ void dec_reset(struct usb_device *dev) } } -int main() +int main(int argc, char *argv[]) { struct usb_bus *busses; struct usb_bus *bus; + (void) argc; + (void) argv; usb_init(); usb_find_busses(); |