From 659f6954a480994415f72580df61635fba3d877f Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 6 Jun 2010 15:30:49 +0200 Subject: [PATCH 1/1] skeleton for rigold webserver --- .gitignore | 2 ++ Makefile | 9 ++++----- rigold.c | 12 ++++++++++++ 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 rigold.c 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; +} -- 2.39.5