Now builds the demo and the client.

This commit is contained in:
Kai Lauterbach 2011-12-23 20:52:11 +01:00
parent 1780e59020
commit b3d7d00593

View file

@ -22,22 +22,25 @@ EXE_SUFFIX =
#USBLIBS = -L/usr/local/lib -lusb #USBLIBS = -L/usr/local/lib -lusb
#EXE_SUFFIX = .exe #EXE_SUFFIX = .exe
NAME = demo DEMO_NAME = demo
NAME = clcc
OBJECTS = opendevice.o $(NAME).o OBJECTS = opendevice.o $(NAME).o
CC = gcc CC = gcc
CFLAGS = $(CPPFLAGS) $(USBFLAGS) -O -g -Wall CFLAGS = $(CPPFLAGS) $(USBFLAGS) -O -g -Wall
LIBS = $(USBLIBS) -lm LIBS = $(USBLIBS) -lm -largtable2
PROGRAM = $(NAME)$(EXE_SUFFIX) PROGRAM = $(NAME)$(EXE_SUFFIX)
all: $(PROGRAM) $(DEMO)
all: $(PROGRAM)
.c.o: .c.o:
$(CC) $(CFLAGS) -c $< $(CC) $(CFLAGS) -c $<
$(DEMO): $(OBJECTS)
$(CC) -o $(DEMO) $(OBJECTS) $(LIBS)
$(PROGRAM): $(OBJECTS) $(PROGRAM): $(OBJECTS)
$(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS) $(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS)