forked from mandovinnie/Lute-Tab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
218 lines (186 loc) · 5.94 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
#
# You may need to use gnu make on this file!
#
#
# if you are installing the fonts and tfm file
# locally because you do not have TeX and metafont on
# your system, change the TFM_PATH to be the directory
# where the lute9.tfm file resides
#
# OPTIM = -O2
# OPTIM = -g -O0 -Wno-int-to-pointer-cast -Wno-unused-value -Wno-format-security -Wformat-overflow
OPTIM = -g -O0 -Wno-int-to-pointer-cast -Wno-unused-value -Wno-format-security
# -Wno-invalid-source-encoding
CC = g++ -wuninitilized
LD = g++
# LD = g++ -m64
# LD = g++ -m32
LDFLAGS = ${OPTIM}
CXX = g++
# CXX = g++ -m64
# CXX = g++ -m32
#
#
LIBS =
#
# use this line if the fonts are in working directory
#
TLOC='"."'
#
# use this line if the fonts are in the TeX library
# or your personal library.
#
# TLOC = '"/Users/wbc/nnt"'
# TLOC = '"/net/wbc/src/nnt"'
# TLOC = '"/net/ifs-users/wbc/src/nnt"'
# TLOC = '"/net/syno-fs/wbc/src/nnt"'
# TLOC = '"/net/quimby/wbc/src/nnt"'
# TLOC = '"/net/wbc/src/old-nnt"'
# TLOC = '"/net/tahoe4/wbc/src/nnt"'
# TLOC = '"/usr/aeolus1/wbc/src/nnt"'
# TLOC = '"/Users/j.w.j.burgers/Documents/TAB"'
# TLOC = '"/home/wbc/nnt"'
# TLOC = '"/home/wbc/src/nnt"'
#
#
#
WARNS = -Wtraditional -Wpointer-arith -Wcast-align -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Woverloaded-virtual -Winline -Wunused -Wno-format-security -Wno-invalid-source-encoding -Wno-stringop-overflow
CXXFLAGS = ${OPTIM} -DTFM_PATH=${TLOC}
#
OBJS = args.o buffer.o dbg.o draw.o dvi.o dvi_f.o dviprint.o \
file_in.o get_t.o getsys.o i_buf.o incl.o main.o \
map.o notes.o pass1.o pass2.o pk_font.o pk_in.o \
print.o ps_print.o score.o sizes.o tab_p.o tfm.o \
title.o tree.o uline.o sound.o beam.o raw_snd.o midi_snd.o \
pdf_print.o ascii.o nmidi.o do_nmidi.o
SOURCES = main.cc file_in.cc tfm.cc dvi.cc buffer.cc i_buf.cc \
getsys.cc get_t.cc args.cc incl.cc print.cc tab_p.cc sizes.cc \
title.cc draw.cc pass1.cc pass2.cc dvi_f.cc map.cc notes.cc \
dviprint.cc score.cc uline.cc ps_print.cc \
pk_in.cc pk_font.cc dbg.cc tree.cc sound.cc beam.cc raw_snd.cc \
midi_snd.cc pdf_print.cc ascii.cc nmidi.cc do_nmidi.cc
HEADERS = buffer.h dbg.h file_in.h print.h system.h tfm.h pkfile.h\
dvi.h i_buf.h sizes.h tab.h dviprint.h ps.h pk_bit.h pk_input.h \
ps_print.h mac.h tree.h sound.h beam.h version.h raw_snd.h \
midi_snd.h pdf_print.h pdf.h ascii.h nmidi.h win.h
all: tab
tt: tree.o tt.o dbg.o
$(LD) $(LDFLAGS) -o tt tree.o tt.o dbg.o
tab: ${OBJS}
$(LD) $(LDFLAGS) -o tab ${OBJS} -lm
clean:
rm -f *~ *.dvi *.ps *.log
rm -f *.o
rm -f *.bdf *gf
pk_font.o: pk_input.h pkfile.h
depend:
mkdep ${SOURCES}
#depend:
# ./makedepend ${SOURCES}
veryclean: clean
rm -f tab
MISC = README blute.mf blute9.mf blute8.mf blute85.mf \
blute6.mf blute6.tfm blute6.300pk blute6.600pk \
blute7.mf blute7.tfm blute7.300pk blute7.600pk \
lute.mf lute9.mf lute85.mf lute8.mf lute7.mf lute6.mf \
blute9.300pk blute8.300pk blute85.300pk \
lute9.300pk lute85.300pk lute8.300pk lute7.300pk lute6.300pk \
blute9.600pk blute85.300pk blute8.600pk blute85.600pk \
lute9.600pk lute8.600pk lute7.600pk lute6.600pk \
lute9.tfm lute8.tfm lute85.tfm lute7.tfm lute6.tfm \
blute9.tfm blute8.tfm blute85.tfm \
blute6.1200pk blute8.1200pk blute9.1200pk lute7.1200pk lute85.1200pk \
blute7.1200pk blute85.1200pk lute6.1200pk lute8.1200pk lute9.1200pk \
cmr10.tfm cmr12.tfm cmti10.tfm cmti12.tfm \
ptmr.tfm ptmri.tfm psyr.tfm \
pbkd.tfm pbkdi.tfm pbkl.tfm pbkli.tfm \
pncb.tfm pncbi.tfm pncr.tfm pncri.tfm \
ptmb.tfm ptmbo.tfm ptmrc.tfm ptmro.tfm ptmrrn.tfm \
ptmbi.tfm ptmrre.tfm \
pzcmi.tfm \
pplr.tfm pplri.tfm pplb.tfm pplbi.tfm \
mk_font_local mk_test mk_300 mk_600 mk_1200 mk_2400 \
sample.tab demo.tab c.tab t.tab AboutTab.txt mkdep \
version.pl makedepend CHANGELOG \
midi-docs/midi-dump.c midi-docs/Makefile \
midi-docs/tftopl.web \
simple.tab \
update.pl .gitignore ps2pdf.pl
DISTFILE = lute_tab4.3.106.tar.gz
distrib: ${DISTFILE}
${DISTFILE}: \
Makefile \
${HEADERS} \
${SOURCES} ${MISC}
cp Makefile Makefile.bak;\
cat Makefile.bak | \
sed '/^# DO NOT DELETE/,/# IF YOU PUT ANYTH/d' | \
sed 's/^TLOC = /# TLOC = /' \
> Makefile; \
tar czvf ${DISTFILE} \
Makefile \
${HEADERS} \
${SOURCES} ${MISC}
cmr12.tfm:
cp -p /usr/lib/tex/fonts/tfm/cmr12.tfm .
cmr12.300pk:
cp -p /usr/lib/tex/fonts/pk300/cmr12.300pk .
cmr10.300pk:
cp -p /usr/lib/tex/fonts/pk300/cmr10.300pk .
cmr10.tfm:
cp -p /usr/lib/tex/fonts/tfm/cmr10.tfm .
# lute9.tfm: lute9.mf lute.mf
# mk_font_local
#
#lute9.300pk: lute9.mf lute.mf
# mk_font_local
#
#lute8.300pk: lute8.mf lute.mf
# mk_font_local
#
#lute8.tfm: lute8.mf lute.mf
# mk_font_local
#
#lute7.300pk: lute7.mf lute.mf
# mk_font_local
#
#lute7.tfm: lute7.mf lute.mf
# mk_font_local
#
#lute6.tfm: lute6.mf lute.mf
# mk_font_local
#
#lute6.300pk: lute6.mf lute.mf
# mk_font_local
Bookman-Light.tfm: /usr/lib/tex/fonts/tfm/Bookman-Light.tfm
cp /usr/lib/tex/fonts/tfm/Bookman-Light.tfm .
Times-Roman.tfm: /usr/lib/tex/fonts/tfm/Times-Roman.tfm
cp /usr/lib/tex/fonts/tfm/Times-Roman.tfm .
Palatino-Bold.tfm: /usr/lib/tex/fonts/tfm/Palatino-Bold.tfm
cp /usr/lib/tex/fonts/tfm/Palatino-Bold.tfm .
Palatino-BoldItalic.tfm: /usr/lib/tex/fonts/tfm/Palatino-BoldItalic.tfm
cp /usr/lib/tex/fonts/tfm/Palatino-BoldItalic.tfm .
win: ${HEADERS} ${SOURCES} c.tab sample.tab
mkdir -p win
rm -rf win/*
cp ${HEADERS} ${SOURCES} win
cp c.tab sample.tab README AboutTab.txt win
for f in win/*.cc ;do \
ff=`echo $$f| awk '{print substr($$0, 1, index($$0, ".")-1)}'`; \
echo '#include <io.h>' >> $$ff.cpp; \
echo '#define _CRT_SECURE_NO_DEPRECATE' >> $$ff.cpp; \
cat $$f >> $$ff.cpp; rm $$f; \
done
cp blute[6789].300pk win
cp blute[6789].600pk win
cp blute[6789].tfm win
cp blute85.300pk win
cp blute85.tfm win
cp lute[6789].tfm win
cp lute[6789].300pk win
cp lute[6789].600pk win
cp cmr1[02].tfm cmti1[02].tfm win
cp pncb.tfm pncbi.tfm pncr.tfm pncri.tfm psyr.tfm ptmr.tfm win
# cp tab.rsrc.bin win
version:
./version.pl