diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-03-07 07:45:12 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-03-07 07:45:12 +0000 |
commit | e0b3ad722c4a760408ba97dc6a71eb9e183843e4 (patch) | |
tree | eba4d95ce068a6ac2e10075314f7433f38acbd8c /xpp | |
parent | 0713480a8fe8e0a150ebb2319d0418b8c352d2e2 (diff) |
Use LDFLAGS in the xpp Makefile
Use a more standard link command in the xpp Makefile.
(closes issue #16597)
Reported by: pprindeville
Patches:
dahdi-tools-bugid16597#3.patch uploaded by pprindeville (license 347)
Tested by: pprindeville, tzafrir
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8263 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp')
-rw-r--r-- | xpp/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/xpp/Makefile b/xpp/Makefile index 837ddc4..a501084 100644 --- a/xpp/Makefile +++ b/xpp/Makefile @@ -104,25 +104,27 @@ ifneq (,$(PERLLIBDIR)) endif fpga_load: fpga_load.o hexfile.o - $(CC) -L. -o $@ $^ $(EXTRA_LIBS) $(USB_LIB) +fpga_load: LIBS+=$(EXTRA_LIBS) $(USB_LIB) astribank_hexload: $(ABHEXLOAD_OBJS) - $(CC) -L. -o $@ $(ABHEXLOAD_OBJS) $(EXTRA_LIBS) $(USB_LIB) +astribank_hexload: LIBS+=$(EXTRA_LIBS) $(USB_LIB) astribank_tool: $(ABTOOL_OBJS) - $(CC) -L. -o $@ $(ABTOOL_OBJS) $(EXTRA_LIBS) $(USB_LIB) +astribank_tool: LIBS+=$(EXTRA_LIBS) $(USB_LIB) astribank_allow: $(ABALLOW_OBJS) - $(CC) -L. -o $@ $(ABALLOW_OBJS) $(EXTRA_LIBS) $(USB_LIB) +astribank_allow: LIBS+=$(EXTRA_LIBS) $(USB_LIB) astribank_is_starting: astribank_is_starting.o - $(CC) -L. -o $@ $^ $(EXTRA_LIBS) +astribank_is_starting: LIBS+=$(EXTRA_LIBS) fpga_load.o: CFLAGS+=-D_GNU_SOURCE # We use memrchr() test_parse: test_parse.o hexfile.o - $(CC) -L. -o $@ $^ $(EXTRA_LIBS) $(USB_LIB) +test_parse: LIBS+=$(EXTRA_LIBS) $(USB_LIB) +%: %.o + $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ .perlcheck: $(PERL_SCRIPTS) for i in $^; do perl -I./perl_modules -c $$i || exit 1; done |