diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-01-12 21:02:19 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-01-12 21:02:19 +0000 |
commit | d1a313d4fa4cbd606b1cbb2ff1316ee09cdcd2cf (patch) | |
tree | 092df67e7d8e63b92d984bfe929a7db69e523ff7 | |
parent | 73bf8cb603fb521dc2470a2626f35aa118c870c9 (diff) |
First of tzafrir's Makefile updates. Fix userland progs depends (bug #4962)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@895 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | Makefile | 58 |
1 files changed, 20 insertions, 38 deletions
@@ -134,7 +134,10 @@ MODULESKO:=$(MODULES:%=%.ko) ifneq (,$(wildcard /usr/include/newt.h)) ZTTOOL:=zttool endif -BINS=ztcfg torisatool makefw ztmonitor ztspeed $(ZTTOOL) zttest fxotune +BINS:=ztcfg sethdlc-new ztmonitor ztspeed $(ZTTOOL) zttest fxotune +UTILS:=tor2ee ztspeed zttool ztmonitor sethdlc-new \ + usbfxstest fxstest fxotune fxsdump ztdiag +UTILSO:=$(UTILS:%=%.o) #PRIMARY=wcfxsusb PRIMARY=torisa @@ -208,8 +211,7 @@ $(MODULESO): %.o: %.c zaptel.h tor2ee.o: tor2-hw.h -tor2ee: tor2ee.o - $(CC) $(CFLAGS) -o $@ $^ -lpci +tor2ee: LDFLAGS+=-lpci zonedata.lo: zonedata.c $(CC) -c $(LCFLAGS) -o $@ $^ @@ -229,8 +231,7 @@ tor2fw.h: makefw tormenta2.rbt radfw.h: makefw pciradio.rbt ./makefw pciradio.rbt radfw > radfw.h -gendigits: gendigits.o - $(CC) -o $@ $^ -lm +gendigits: LDFLAGS+=-lm zaptel.c: tones.h @@ -242,23 +243,10 @@ ztprovision.o: ztprovision.c zaptel.h ztmonitor.o: ztmonitor.c zaptel.h -ztspeed.o: ztspeed.c - $(CC) -o $@ -c $^ - -zttool: zttool.o - $(CC) -o $@ $^ -lnewt - -ztmonitor: ztmonitor.o - $(CC) -o $@ $^ - -ztspeed: ztspeed.o - $(CC) -o $@ $^ - -sethdlc-new: sethdlc-new.o - $(CC) -o $@ $^ - -sethdlc-new.o: sethdlc-new.c - $(CC) -o $@ -c $(CFLAGS) -I$(KINCLUDES) $^ +ztspeed: CFLAGS= +ztspeed.o: CFLAGS= +zttool: LDFLAGS+=-lnewt +sethdlc-new.o: CFLAGS+=-I$(KINCLUDES) libtonezone.a: $(TZOBJS) ar rcs libtonezone.a $^ @@ -283,26 +271,20 @@ mknotch.o: mknotch.cc complex.o: complex.cc $(CC) -o $@ -c $^ -usbfxstest.o: usbfxstest.c - $(CC) -o $@ -g -c $^ - -usbfxstest: usbfxstest.o - $(CC) -o $@ $^ -lzap - -fxstest: fxstest.o $(LIBTONEZONE_SO) - $(CC) -o $@ $^ -lm - -fxotune: fxotune.o - $(CC) -o $@ $^ -lm - -fxsdump: fxsdump.o - $(CC) -o $@ $^ -lm +usbfxstest: LDFLAGS+=-lzap +fxstest: $(LIBTONEZONE_SO) +fxstest: LDFLAGS+=-lm +fxotune: LDFLAGS+=-lm +fxsdump: LDFLAGS+=-lm stackcheck: checkstack $(BUILDVER) ./checkstack *.o -ztdiag: ztdiag.o - $(CC) -o $@ $^ +$(UTILS): %: %.o + $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) + +$(UTILSO): %.o: %.c + $(CC) $(CFLAGS) -o $@ -c $< devices: ifndef DYNFS |