File: pcc.mak

package info (click to toggle)
abcmidi 17-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 792 kB
  • ctags: 1,455
  • sloc: ansic: 17,345; makefile: 104
file content (74 lines) | stat: -rw-r--r-- 2,076 bytes parent folder | download
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
# PCC Makefile for abcMIDI package
# 
#
# compilation #ifdefs - you need to define some of these to get
#                       the code to compile with PCC.
#
# NOFTELL in midifile.c and tomidi.c selects a version of the file-writing
#         code which doesn't use file seeking.
#
# PCCFIX in mftext.c midifile.c midi2abc.c
#        comments out various things that aren't available in PCC
#        and applies a fix needed for file writing
#
# ANSILIBS causes appropriate ANSI .h files to be #included.
#
# KANDR selects function prototypes with argument prototypes.
#
# USE_INDEX replaces calls to strchr() with calls to index().
#

CC=pcc
CFLAGS=-nPCCFIX -nNOFTELL -nUSE_INDEX -nKANDR
LNK=pccl

all : abc2midi.exe midi2abc.exe abc2abc.exe mftext.exe

abc2midi.exe : parseabc.o store.o genmidi.o queues.o midifile.o parser2.o
	$(LNK) -Lc:\bin\pcc\ -Oabc2midi parseabc.o store.o genmidi.o queues.o midifile.o parser2.o

abc2abc.exe : parseabc.o toabc.o
	$(LNK) -Lc:\bin\pcc\ -Oabc2abc parseabc.o toabc.o

midi2abc.exe : midifile.o midi2abc.o 
	$(LNK) -Lc:\bin\pcc\ midifile.o midi2abc.o -Omidi2abc

mftext.exe : midifile.o mftext.o crack.o
	$(LNK) -Lc:\bin\pcc\ midifile.o mftext.o crack.o -Omftext

parseabc.o : parseabc.c abc.h parseabc.h
	$(CC) parseabc.c  $(CFLAGS)

parser2.o : parser2.c abc.h parseabc.h parser2.h
	$(CC) parser2.c $(CFLAGS)

toabc.o : toabc.c abc.h parseabc.h
	$(CC) toabc.c  $(CFLAGS)

genmidi.o : genmidi.c abc.h midifile.h parseabc.h genmidi.h
	$(CC) genmidi.c $(CFLAGS)

store.o : store.c abc.h midifile.h parseabc.h
	$(CC) store.c $(CFLAGS)

queues.o : queues.c genmidi.h
	$(CC) queues.c $(CFLAGS)

midifile.o : midifile.c midifile.h
	$(CC) midifile.c $(CFLAGS)

midi2abc.o : midi2abc.c midifile.h
	$(CC) midi2abc.c $(CFLAGS)

crack.o : crack.c
	$(CC) crack.c  $(CFLAGS)

mftext.o : mftext.c midifile.h
	$(CC) mftext.c $(CFLAGS)

clean:
	del *.exe
	del *.o

zipfile: abc2midi.exe midi2abc.exe abc2abc.exe mftext.exe
	zip pcexe.zip *.exe readme.txt abcguide.txt demo.abc