wrong parameter to get opt, ws cleanup, and -O2
parent
2fd4d3f7d6
commit
a269f09805
4
Makefile
4
Makefile
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue