2010-08-13 14:46:38 +03:00
|
|
|
#
|
|
|
|
# f32x/Makefile - Build the C8051F326/7 Flash programmer
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
CC=arm-angstrom-linux-gnueabi-gcc
|
|
|
|
|
|
|
|
CFLAGS=-Wall -Wshadow -g -O
|
|
|
|
LDFLAGS=
|
|
|
|
|
|
|
|
PREFIX=/usr
|
|
|
|
|
|
|
|
NAME=f32x
|
2010-10-21 16:00:41 +03:00
|
|
|
OBJS=f32x.o flash.o c2-om.o gpio.o rt.o boundary.o
|
2010-08-13 14:46:38 +03:00
|
|
|
|
|
|
|
.PHONY: all install uninstall clean depend spotless
|
|
|
|
|
|
|
|
all: $(NAME)
|
|
|
|
|
|
|
|
$(NAME): $(OBJS)
|
|
|
|
|
|
|
|
upload:
|
|
|
|
ssh lab neo 'cat \>f32x' <f32x
|
|
|
|
|
|
|
|
install: $(NAME)
|
|
|
|
install -D $(NAME) $(PREFIX)/bin/$(NAME)
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(PREFIX)/bin/$(NAME)
|
|
|
|
|
|
|
|
depend:
|
|
|
|
$(CPP) $(CFLAGS) -MM -MG *.c >.depend || \
|
|
|
|
{ rm -f .depend; exit 1; }
|
|
|
|
|
|
|
|
ifeq (.depend,$(wildcard .depend))
|
|
|
|
include .depend
|
|
|
|
endif
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) .depend
|
|
|
|
|
|
|
|
spotless: clean
|
|
|
|
rm -f $(NAME)
|