wrong parameter to get opt, ws cleanup, and -O2

pull/2/head
Jeffrey Quesnelle 2016-08-01 13:53:50 -04:00
parent 2fd4d3f7d6
commit a269f09805
2 changed files with 108 additions and 108 deletions

View File

@ -1,13 +1,13 @@
CXX=g++ CXX=g++
CC=gcc CC=gcc
CFLAGS=-g -c CFLAGS=-g -c -O2
LDFLAGS= LDFLAGS=
AR=ar AR=ar
all: icsscand all: icsscand
icsscand: icsscand.o icsscand: icsscand.o
$(CC) $(LDFLAGS) icsscand.o -o icsscand -lpthread -lftdi -licsneoapi $(CC) $(LDFLAGS) icsscand.o -o icsscand -lpthread -licsneoapi
icsscand.o: icsscand.c icsscand.o: icsscand.c
$(CC) $(CFLAGS) icsscand.c $(CC) $(CFLAGS) icsscand.c

View File

@ -563,7 +563,7 @@ int main(int argc, char **argv)
pthread_t probe_thread; pthread_t probe_thread;
/* process command line switches */ /* process command line switches */
while ((opt = getopt(argc, argv, "hF")) != -1) while ((opt = getopt(argc, argv, "hD")) != -1)
{ {
switch(opt) switch(opt)
{ {