From fa7fb4829678565c04209897adbbaa6442d3af6a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 20 Aug 2010 16:16:13 -0300 Subject: [PATCH] Put libraries at end of linker invocation to make it work with local libraries. Some minor cleanup. - lib/Makefile.common: introduced LDLIBS to place libraries at the end of the $(LD) command line - lib/Makefile.common: put spaces around assignments - README: added short name of project to title --- README | 4 ++-- lib/Makefile.common | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README b/README index 572c08e..68cd402 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -C8051F32x firmware infrastructure -================================= +F328Xbase - C8051F32x firmware infrastructure +============================================= Copyright 2008-2010 Werner Almesberger diff --git a/lib/Makefile.common b/lib/Makefile.common index f75e939..12d163e 100644 --- a/lib/Makefile.common +++ b/lib/Makefile.common @@ -11,17 +11,18 @@ # -INSTALL_PREFIX=/usr/local +INSTALL_PREFIX = /usr/local -CFLAGS=-Wall -LDFLAGS=-lusb +CFLAGS = -Wall +LDFLAGS = +LDLIBS = -lusb .PHONY: all install uninstall clean spotless all: $(MAIN) $(MAIN): $(MAIN).o $(OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MAIN).o $(OBJS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MAIN).o $(OBJS) $(LDLIBS) install: $(MAIN) install $(MAIN) $(INSTALL_PREFIX)/bin/