From: Michael Gernoth Date: Sun, 6 Jun 2010 13:30:49 +0000 (+0200) Subject: skeleton for rigold webserver X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rigol/commitdiff_plain/659f6954a480994415f72580df61635fba3d877f?hp=b74fea90bd5429ab527016eb89d98b4c6a246e68 skeleton for rigold webserver --- diff --git a/.gitignore b/.gitignore index 79d323f..c3ed002 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ raw2gp rigol +rigold rigol.o +rigold.o png.o usbtmc.o commands.o diff --git a/Makefile b/Makefile index d499492..54c52ab 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,14 @@ -CFILES=rigol.c -OFILES=rigol.o png.o usbtmc.o commands.o +OFILES=png.o usbtmc.o commands.o CFLAGS=-O2 -Wall LDFLAGS=-lusb -lreadline -lz CC=gcc -all: rigol raw2gp +all: rigol rigold raw2gp -rigol: $(OFILES) +rigol: rigol.o $(OFILES) -rigol.o: rigol.c +rigold: rigold.o $(OFILES) clean: rm -f *.o rigol raw2gp *~ diff --git a/rigold.c b/rigold.c new file mode 100644 index 0000000..b32c474 --- /dev/null +++ b/rigold.c @@ -0,0 +1,12 @@ +#include + +#include "usbtmc.h" + +int main(int argc, char **argv) +{ + struct usb_dev_handle *sc; + + sc = usbtmc_initscope(); + usbtmc_close(sc); + return 0; +}