From: David Schleef Date: Mon, 21 Jan 2002 00:33:05 +0000 (+0000) Subject: Fix to make the demo programs link statically with the local X-Git-Tag: r0_7_18~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=575761aed2a717b9f1d1c25ec6f2fd3468746826;p=comedilib.git Fix to make the demo programs link statically with the local library. --- diff --git a/demo/Makefile b/demo/Makefile index 745012e..ec0be40 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -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)