C8051F32x firmware infrastructure

Sign in or create your account | Project List | Help

C8051F32x firmware infrastructure Git Source Tree

Root/lib/Makefile.common

Source at commit ab915dd785630dfd9c59bb7137cb9b9ed17c740a created 12 years 10 months ago.
By Werner Almesberger, lib/Makefile.common: changed "clean:" to "clean::" to allow for additions
1#
2# Makefile.common - Common rules and definitions for all the tools
3#
4# Written 2008 by Werner Almesberger
5# Copyright 2008 Werner Almesberger
6#
7# This program is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2 of the License, or
10# (at your option) any later version.
11#
12
13
14INSTALL_PREFIX = /usr/local
15
16CFLAGS = -Wall
17LDFLAGS =
18LDLIBS = -lusb
19
20.PHONY: all install uninstall clean spotless
21
22all: $(MAIN)
23
24$(MAIN): $(MAIN).o $(OBJS)
25        $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(MAIN).o $(OBJS) $(LDLIBS)
26
27install: $(MAIN)
28        install $(MAIN) $(INSTALL_PREFIX)/bin/
29
30uninstall:
31        rm -f $(INSTALL_PREFIX)/bin/$(MAIN)
32
33clean::
34        rm -f $(MAIN).o $(OBJS)
35
36spotless: clean
37        rm -f $(MAIN)
38
39

Archive Download this file

Branches:
master



interactive