1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2024-11-23 20:14:59 +02:00

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
This commit is contained in:
Werner Almesberger 2010-08-20 16:16:13 -03:00
parent 2a5850591c
commit fa7fb48296
2 changed files with 7 additions and 6 deletions

4
README
View File

@ -1,5 +1,5 @@
C8051F32x firmware infrastructure F328Xbase - C8051F32x firmware infrastructure
================================= =============================================
Copyright 2008-2010 Werner Almesberger Copyright 2008-2010 Werner Almesberger

View File

@ -11,17 +11,18 @@
# #
INSTALL_PREFIX=/usr/local INSTALL_PREFIX = /usr/local
CFLAGS=-Wall CFLAGS = -Wall
LDFLAGS=-lusb LDFLAGS =
LDLIBS = -lusb
.PHONY: all install uninstall clean spotless .PHONY: all install uninstall clean spotless
all: $(MAIN) all: $(MAIN)
$(MAIN): $(MAIN).o $(OBJS) $(MAIN): $(MAIN).o $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MAIN).o $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MAIN).o $(OBJS) $(LDLIBS)
install: $(MAIN) install: $(MAIN)
install $(MAIN) $(INSTALL_PREFIX)/bin/ install $(MAIN) $(INSTALL_PREFIX)/bin/