-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmakefile.nmk
82 lines (66 loc) · 2.71 KB
/
makefile.nmk
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
## id3 makefile for Micrsoft C/C++ (tested with 16.0) ######################
CL = cl
LINK = link /ltcg
!ifndef CFLAGS
CFLAGS = /O1 /EHsc /GR- /GL /wd4804
!endif
############################################################################
id3.exe: main.obj varexp.obj fileexp.obj dumptag.obj \
sedit.obj mass_tag.obj pattern.obj \
setid3.obj getid3.obj id3v1.obj \
setid3v2.obj getid3v2.obj id3v2.obj fileops.obj \
setlyr3.obj getlyr3.obj lyrics3.obj \
setfname.obj setquery.obj charconv.obj char_ucs.obj char_utf8.obj
$(LINK) /out:$@ $**
id3-images.exe: id3-images.obj id3v2.obj fileops.obj
$(LINK) /out:$@ $**
all : id3.exe
final: id3.exe
upx --best $** ## requires upx installed ##
clean:
del *.obj *.exe
############################################################################
main.obj: main.cpp
$(CL) $(CFLAGS) /c main.cpp
fileexp.obj: dirent\include\dirent.h
$(CL) $(CFLAGS) /I dirent\include /c fileexp.cpp
.c.obj:
$(CL) $(CFLAGS) /c $<
.cpp.obj:
$(CL) $(CFLAGS) /c $<
############################################################################
main.obj: main.cpp setgroup.h set_base.h sedit.h charconv.h setid3.h \
setfname.h setquery.h setid3v2.h setlyr3.h mass_tag.h fileexp.h \
pattern.h dumptag.h
sedit.obj: sedit.cpp sedit.h charconv.h
varexp.obj: varexp.cpp varexp.h
fileexp.obj: fileexp.cpp varexp.h auto_dir.h fileexp.h
mass_tag.obj: mass_tag.cpp charconv.h sedit.h set_base.h mass_tag.h \
fileexp.h
pattern.obj: pattern.cpp set_base.h sedit.h charconv.h mass_tag.h fileexp.h \
pattern.h
dumptag.obj: dumptag.cpp dumptag.h set_base.h sedit.h charconv.h setgroup.h
charconv.obj: charconv.cpp charconv.h
char_ucs.obj: char_ucs.cpp char_ucs.h charconv.h
char_utf8.obj: char_utf8.cpp utf8.h char_utf8.h charconv.h
lyrics3.obj: lyrics3.cpp lyrics3.h
setid3.obj: setid3.cpp id3v1.h getid3.h set_base.h sedit.h charconv.h \
setid3.h
setid3v2.obj: setid3v2.cpp char_ucs.h charconv.h id3v1.h id3v2.h fileops.h \
getid3v2.h set_base.h sedit.h setid3v2.h
setlyr3.obj: setlyr3.cpp charconv.h lyrics3.h getlyr3.h getid3.h set_base.h \
sedit.h id3v1.h setlyr3.h
setfname.obj: setfname.cpp sedit.h charconv.h setfname.h setgroup.h \
set_base.h
setquery.obj: setquery.cpp setquery.h set_base.h sedit.h charconv.h
getid3.obj: getid3.cpp getid3.h set_base.h sedit.h charconv.h id3v1.h
getid3v2.obj: getid3v2.cpp char_ucs.h charconv.h char_utf8.h id3v2.h \
getid3v2.h set_base.h sedit.h
getlyr3.obj: getlyr3.cpp lyrics3.h getid3.h set_base.h sedit.h charconv.h \
id3v1.h getlyr3.h
fileops.obj: fileops.c fileops.h
id3v1.obj: id3v1.c id3v1.h
id3v2.obj: id3v2.c fileops.h id3v2.h
dirent\include\dirent.h:
git clone https://github.com/tronkko/dirent
############################################################################