-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile.msc
39 lines (29 loc) · 1.09 KB
/
makefile.msc
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
# -*- mode: makefile; -*-
# makefile.msc ie,
# with the conversion of ".o" into ".obj", the assignment "CC=cl"
# plus other minor modifications
CFLAGS = -O /AC -DSETMODE
# If you have an old version of flex that defines yyleng
# as a macro rather than a variable, uncomment the following line:
# CFLAGS = -O -DNO_YYLENG_VAR
CC=cl
# Microsoft C compiler
SRCS = crack.c mf2t.c midifile.c midifile.h t2mf.c t2mf.h \
t2mf.fl t2mflex.c yyread.c \
README.TXT makefile.st makefile.unx makefile.bcc makefile.msc\
example1.mid example1.txt example2.mid example2.txt example3.mid \
example3.txt example4.mid example4.txt example5.mid example5.txt
EXECS = mf2t t2mf
all: $(EXECS)
t2mf: midifile.obj t2mf.obj t2mf.h t2mflex.obj crack.obj
$(CC) t2mf.obj midifile.obj crack.obj t2mflex.obj
t2mflex.c: t2mf.fl
flex -is -Ce t2mf.fl
ren lex.yy.c t2mflex.c
t2mflex.obj: t2mflex.c t2mf.h
mf2t: midifile.obj mf2t.obj crack.obj
$(CC) mf2t.obj midifile.obj crack.obj
tar:
pkzip mf2t $(SRCS)
zip: $(SRCS) $(EXECS)
zip -9 mf2t $(SRCS) $(EXECS)