1
0
mirror of git://projects.qi-hardware.com/f32xbase.git synced 2024-11-27 18:10:38 +02:00
f32xbase/lib/Makefile.common
Werner Almesberger fa7fb48296 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
2010-08-20 16:16:13 -03:00

39 lines
797 B
Makefile

#
# Makefile.common - Common rules and definitions for all the tools
#
# Written 2008 by Werner Almesberger
# Copyright 2008 Werner Almesberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
INSTALL_PREFIX = /usr/local
CFLAGS = -Wall
LDFLAGS =
LDLIBS = -lusb
.PHONY: all install uninstall clean spotless
all: $(MAIN)
$(MAIN): $(MAIN).o $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MAIN).o $(OBJS) $(LDLIBS)
install: $(MAIN)
install $(MAIN) $(INSTALL_PREFIX)/bin/
uninstall:
rm -f $(INSTALL_PREFIX)/bin/$(MAIN)
clean:
rm -f $(MAIN).o $(OBJS)
spotless: clean
rm -f $(MAIN)