mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-04-21 12:27:27 +03:00
bacon/prog/: simple PIC 18F{2,4}xJxx programmer (for the Ben Nanonote)
This commit is contained in:
63
bacon/prog/Makefile
Normal file
63
bacon/prog/Makefile
Normal file
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# picpen/Makefile - PIC Programmer/Emulator for Nanonote
|
||||
#
|
||||
# Written 2008, 2010-2011 by Werner Almesberger
|
||||
# Copyright 2008, 2010-2011 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.
|
||||
#
|
||||
|
||||
|
||||
PREFIX=/usr
|
||||
|
||||
ifeq ($(TARGET),)
|
||||
TARGET = ben_openwrt
|
||||
endif
|
||||
|
||||
CC_ben_jlime = mipsel-linux-gcc
|
||||
CC_ben_openwrt = mipsel-openwrt-linux-gcc
|
||||
|
||||
UPLOAD_ben_jlime = scp f32x jlime:
|
||||
UPLOAD_ben_openwrt = scp f32x ben:
|
||||
|
||||
NAME = picpen
|
||||
CC = $(CC_$(TARGET))
|
||||
CFLAGS = -Wall -Wshadow -O9 -g -static
|
||||
OBJS = picpen.o gpio-xburst.o
|
||||
LDFLAGS = -static
|
||||
|
||||
|
||||
.PHONY: all install uninstall clean depend spotless
|
||||
|
||||
all: $(NAME)
|
||||
|
||||
$(NAME): $(OBJS)
|
||||
|
||||
upload:
|
||||
$(UPLOAD_$(TARGET))
|
||||
|
||||
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
|
||||
|
||||
c2-om.o: c2-bitbang.c
|
||||
c2-ben.o: c2-bitbang.c
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(OBJS_ben) .depend
|
||||
|
||||
spotless: clean
|
||||
rm -f $(NAME)
|
||||
Reference in New Issue
Block a user