Now builds the demo and the client.
This commit is contained in:
parent
1780e59020
commit
b3d7d00593
1 changed files with 8 additions and 5 deletions
|
@ -22,22 +22,25 @@ EXE_SUFFIX =
|
|||
#USBLIBS = -L/usr/local/lib -lusb
|
||||
#EXE_SUFFIX = .exe
|
||||
|
||||
NAME = demo
|
||||
DEMO_NAME = demo
|
||||
NAME = clcc
|
||||
|
||||
OBJECTS = opendevice.o $(NAME).o
|
||||
|
||||
CC = gcc
|
||||
CC = gcc
|
||||
CFLAGS = $(CPPFLAGS) $(USBFLAGS) -O -g -Wall
|
||||
LIBS = $(USBLIBS) -lm
|
||||
LIBS = $(USBLIBS) -lm -largtable2
|
||||
|
||||
PROGRAM = $(NAME)$(EXE_SUFFIX)
|
||||
|
||||
|
||||
all: $(PROGRAM)
|
||||
all: $(PROGRAM) $(DEMO)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
$(DEMO): $(OBJECTS)
|
||||
$(CC) -o $(DEMO) $(OBJECTS) $(LIBS)
|
||||
|
||||
$(PROGRAM): $(OBJECTS)
|
||||
$(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS)
|
||||
|
||||
|
|
Loading…
Reference in a new issue