~ubuntu-branches/ubuntu/wily/siggen/wily

« back to all changes in this revision

Viewing changes to .pc/rename-sgen.diff/Makefile

  • Committer: Package Import Robot
  • Author(s): Thorsten Alteholz
  • Date: 2012-03-13 18:51:09 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120313185109-0zkxvq2vpwbjbkf2
Tags: 2.3.10-5
* new maintainer (closes: #628941)
* debian/rules: remove explicit patch targets
* debian/rules: replace dh_clean -k by dh_prep
* debian/rules: build-arch and build-indep introduced
* debian/rules: standard moved to 3.9.3 (no changes)
* debian/watch: added, but not working with upstreams website
* debian/control: dependency on quilt removed
* debian/control: no public vcs available
* debian/control: moved to dh 9
* debian/patches: add header
* debian/source/format: 3.0 (quilt) introduced

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Makefile for jj's siggen  .....
 
3
 
 
4
SHELL           = /bin/sh
 
5
 
 
6
# Version of siggen
 
7
 
 
8
V       = 2.3
 
9
 
 
10
# Edit PROGS to make the programs you want. You may wish to omit smix
 
11
#  if you do not want yet another mixer program.
 
12
PROGS           = tones sgen swgen siggen sweepgen fsynth soundinfo smix
 
13
 
 
14
#
 
15
TEXTS           = tones.txt sgen.txt swgen.txt siggen.txt sweepgen.txt soundinfo.txt smix.txt fsynth.txt siggen.conf.txt
 
16
 
 
17
#
 
18
# simple command line programs......
 
19
TONES           = tones.o tonesgen.o generator.o misc.o wavfile.o wavsubs.o DAC.o configsubs.o
 
20
SGEN            = sgen.o generator.o misc.o wavfile.o wavsubs.o DAC.o configsubs.o
 
21
SWGEN           = swgen.o generator.o misc.o wavfile.o wavsubs.o DAC.o configsubs.o
 
22
SMIX            = smix.o mixer.o configsubs.o
 
23
#
 
24
# curses based programs......
 
25
FSYNTH          = fsynth.o fsynscr.o scrsubs.o generator.o misc.o DAC.o scfio.o configsubs.o
 
26
SIGGEN          = siggen.o sigscr.o scrsubs.o generator.o misc.o DAC.o scfio.o configsubs.o
 
27
SWEEPGEN        = sweepgen.o sweepscr.o scrsubs.o generator.o misc.o DAC.o scfio.o configsubs.o
 
28
#
 
29
srcdir          = .
 
30
includedir      = /usr/include/ncurses
 
31
INSDIR          = /usr/local/bin
 
32
MANDIR          = /usr/local/man
 
33
LOCALINS        = $(HOME)/bin
 
34
LOCALMAN        = $(HOME)/man
 
35
 
 
36
CC              = gcc
 
37
CFLAGS          =  -O2  
 
38
CPPFLAGS        = -I. -I$(includedir)
 
39
 
 
40
CCFLAGS         = $(CFLAGS) $(CPPFLAGS)
 
41
 
 
42
LINK            = $(CC)
 
43
LDFLAGS         = -lncurses -lm
 
44
 
 
45
.c.o:   config.h
 
46
        $(CC) -c $(CCFLAGS) $<
 
47
 
 
48
all:    $(PROGS) $(TEXTS) 
 
49
 
 
50
text:   $(TEXTS)
 
51
 
 
52
%.txt:  %.5
 
53
        nroff -man $< | col -b -x > $@
 
54
 
 
55
%.txt:  %.1
 
56
        nroff -man $< | col -b -x > $@
 
57
 
 
58
mixer.o:        mixer.c mixer.h
 
59
 
 
60
smix.o:         smix.c mixer.h config.h
 
61
 
 
62
scfio.o:        scfio.c scfio.h
 
63
 
 
64
scrsubs.o:      scrsubs.c scfio.h config.h
 
65
 
 
66
sigscr.o:       sigscr.c scfio.h config.h siggen.h
 
67
 
 
68
sigscr-1.o:     sigscr-1.c scfio.h config.h
 
69
 
 
70
sweepscr.o:     sweepscr.c scfio.h config.h sweepgen.h
 
71
 
 
72
fsynscr.o:      fsynscr.c scfio.h fsynth.h config.h
 
73
 
 
74
fsynth.o:       fsynth.c fsynth.h config.h
 
75
 
 
76
install:
 
77
        @echo "2 install options :-"
 
78
        @echo "    make sysinstall"
 
79
        @echo "         into $(INSDIR) and $(MANDIR)"
 
80
        @echo "    make localinstall"
 
81
        @echo "         into $(LOCALINS) and $(LOCALMAN)"
 
82
 
 
83
localinstall: $(PROGS)
 
84
        @strip $(PROGS)
 
85
        @chmod 755 $(PROGS)
 
86
        @echo "Copying $(PROGS) to $(LOCALINS)"
 
87
        @cp -p $(PROGS) $(LOCALINS)
 
88
        @for n in $(PROGS) ; do \
 
89
        chmod 644 $$n.1 ; \
 
90
        echo "Copying $$n.1 to $(LOCALMAN)/man1/$$n.1" ; \
 
91
        cp -p $$n.1 $(LOCALMAN)/man1/$$n.1 ; \
 
92
        done
 
93
        @cp -p siggen.conf.5 $(LOCALMAN)/man5
 
94
        @chmod 644 $(LOCALMAN)/man5/siggen.conf.5
 
95
 
 
96
sysinstall: $(PROGS)
 
97
        @strip $(PROGS)
 
98
        @chmod 755 $(PROGS)
 
99
        @echo "Copying $(PROGS) to $(INSDIR)"
 
100
        @cp -p $(PROGS) $(INSDIR)
 
101
        @for n in $(PROGS) ; do \
 
102
        chmod 644 $$n.1 ; \
 
103
        echo "Copying $$n.1 to $(MANDIR)/man1/$$n.1" ; \
 
104
        cp -p $$n.1 $(MANDIR)/man1/$$n.1 ; \
 
105
        done
 
106
        @cp -p siggen.conf.5 $(MANDIR)/man5
 
107
        @chmod 644 $(MANDIR)/man5/siggen.conf.5
 
108
 
 
109
nodac:
 
110
        make -f Makefile.NODAC all
 
111
 
 
112
vu:     $(VU)
 
113
        $(CC)  $(VU) -o $@
 
114
 
 
115
soundinfo:      soundinfo.o
 
116
        $(CC)  $@.o -o $@
 
117
 
 
118
sgen:   $(SGEN)
 
119
        $(CC)  $(SGEN) -lm -o $@
 
120
 
 
121
swgen:  $(SWGEN)
 
122
        $(CC)  $(SWGEN) -lm -o $@
 
123
 
 
124
tones:  $(TONES)
 
125
        $(CC)  $(TONES) -lm -o $@
 
126
 
 
127
fsynth: $(FSYNTH) fsynth.h
 
128
        $(CC) $(FSYNTH) $(LDFLAGS) -o $@
 
129
 
 
130
siggen: $(SIGGEN) siggen.h
 
131
        $(CC) $(SIGGEN) $(LDFLAGS) -o $@
 
132
 
 
133
siggen-1: $(SIGGEN1) siggen.h
 
134
        $(CC) -DVERSION1 $(SIGGEN1) $(LDFLAGS) -o $@
 
135
 
 
136
sweepgen: $(SWEEPGEN) sweepgen.h
 
137
        $(CC) $(SWEEPGEN) $(LDFLAGS) -o $@
 
138
 
 
139
smix:   $(SMIX) mixer.h
 
140
        $(CC) $(SMIX) $(LDFLAGS) -o $@
 
141
 
 
142
clean:
 
143
        rm -rf *.o $(PROGS) $(TEXTS) *~ 
 
144
 
 
145
dist:
 
146
        make clean
 
147
        (cd tones.eg; make clean)
 
148
        (cd contrib; make clean)
 
149
        (d=`basename $$PWD` ; cd .. ; tar cfz $$d.tgz $$d)
 
150