Fix to make the demo programs link statically with the local
authorDavid Schleef <ds@schleef.org>
Mon, 21 Jan 2002 00:33:05 +0000 (00:33 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 21 Jan 2002 00:33:05 +0000 (00:33 +0000)
library.

demo/Makefile

index 745012efea66b285e3c7b3a32173ff65f0e3b842..ec0be405bbf680b55986b6016e4607280a4629ef 100644 (file)
@@ -3,20 +3,20 @@ include ../Config
 
 
 CFLAGS += -I ../include -I .
-LDFLAGS += -L../lib/ -lcomedi -lm
+LIBS += ../lib/libcomedi.a -lm
 
 
-BINS=tut1 tut2
-MBINS=inp inpn sv eeprom_dump info outp insn antialias ao_waveform \
+BINS=tut1 tut2 # sv
+MBINS=inp inpn eeprom_dump info outp insn antialias ao_waveform \
        dio mmap ledclock receiver sigio select sender cmd poll
 
 all: $(BINS) $(MBINS)
 
 $(BINS): % : %.o
-       $(CC) $(LDFLAGS) -o $@ $<
+       $(CC) -o $@ $< $(LIBS)
 
 $(MBINS): % : %.o common.o
-       $(CC) $(LDFLAGS) -o $@ common.o $<
+       $(CC) -o $@ common.o $< $(LIBS)
 
 clean:
        -rm -f *.o $(BINS) $(MBINS)