~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to examples/rcmx000/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-02-12 08:23:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080212082349-wgijt44scmgje90o
Tags: 1.7.ds1-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - build z88dk and z88dk-bin binary packages for lpia too
  - update Maintainer field as per spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Z88DK - Rabbit Control Module examples
 
2
#
 
3
# $Id: Makefile,v 1.2 2007/05/18 06:36:50 stefano Exp $
 
4
 
 
5
# You NEED to set this to your baudrate divisor and your serial port
 
6
SERDEVICE=/dev/ttyXXX
 
7
BAUD_DIV=XXX
 
8
 
 
9
 
 
10
all: example.bin twinkle2000.bin twinkle3000.bin
 
11
 
 
12
SUPPORT=/usr/local/lib/z88dk/support/rcmx000
 
13
 
 
14
 
 
15
 
 
16
example.bin: example.c
 
17
        zcc +rcmx000 -oexample.bin example.c
 
18
 
 
19
 
 
20
twinkle2000.bin:
 
21
        zcc +rcmx000 -otwinkle2000.bin twinkle2000.c
 
22
 
 
23
twinkle3000.bin:
 
24
        zcc +rcmx000 -otwinkle3000.bin twinkle3000.c
 
25
 
 
26
 
 
27
run_example:
 
28
        $(SUPPORT)/boot $(SERDEVICE) $(BAUD_DIV) -b EXAMPLE.LOD example.bin
 
29
 
 
30
run_twinkle2000:
 
31
        $(SUPPORT)/boot $(SERDEVICE) $(BAUD_DIV) -b TWINKLE2000.LOD twinkle2000.bin
 
32
 
 
33
run_twinkle3000:
 
34
        $(SUPPORT)/boot $(SERDEVICE) $(BAUD_DIV) -b TWINKLE3000.LOD twinkle3000.bin
 
35
 
 
36
clean:
 
37
        rm -f *.bin ; rm -f *.LOD ; rm -f tmp_* ; rm -f zcc_opt.def ; \
 
38
        rm -f *~ ; rm -f #* ; rm -f *#
 
39