File: makefile.win32

package info (click to toggle)
id3lib3.8.3 3.8.3-16.2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,636 kB
  • ctags: 3,103
  • sloc: cpp: 12,364; sh: 9,186; ansic: 7,240; makefile: 355; php: 325
file content (148 lines) | stat: -rw-r--r-- 4,102 bytes parent folder | download | duplicates (9)
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
# $Id: makefile.win32,v 1.3 2002/08/10 11:49:08 t1mpy Exp $
#
# Win32 makefile for id3lib
#
# First off, copy config.h.win32 to config.h
#
# You should run this using 'name -f makefile.win32' from the
# id3lib root directory (for instance, c:\projects\id3lib-3.8.0\).
#
# If you want a debug version of the lib, add DEBUG=1 to 
# the nmake command line.
#
# The library will be produced as 'id3lib.lib' for the release
# version, or 'id3libd.lib' for the debug version.
#
# Comments, bugs, go to johan@linkdata.se
# Mail me on how to run the command line compiler, and I'll flame you. RTFM.
#
# PS.
# Wtf is it that everyone insists on using the Visual C++ IDE?
# I mean, I found the instructions for building this lib under
# the IDE posted on a mailing list. It was 4 pages long, at least.
#

CFLAGS=-nologo -I. -Iinclude -Iinclude\id3 -Izlib\include \
	-W3 -WX -GX \
	-DHAVE_CONFIG_H -DID3LIB_LINKOPTION=1

!ifdef DEBUG
SUFFIX=d
CFLAGS=$(CFLAGS) -Od -Z7 -Oy- -MD -D "WIN32" -D "_DEBUG"
!else
SUFFIX=
CFLAGS=$(CFLAGS) -Ox     -Oy- -MD -D "WIN32" -D "NDEBUG"
!endif

SRCDIR=src
ZLIBDIR=zlib\src
OBJDIR=obj$(SUFFIX)

SRCS=\
	$(SRCDIR)\c_wrapper.cpp \
	$(SRCDIR)\field.cpp \
	$(SRCDIR)\field_binary.cpp \
	$(SRCDIR)\field_integer.cpp \
	$(SRCDIR)\field_string_ascii.cpp \
	$(SRCDIR)\field_string_unicode.cpp \
	$(SRCDIR)\frame.cpp \
	$(SRCDIR)\frame_impl.cpp \
	$(SRCDIR)\frame_parse.cpp \
	$(SRCDIR)\frame_render.cpp \
	$(SRCDIR)\globals.cpp \
	$(SRCDIR)\header.cpp \
	$(SRCDIR)\header_frame.cpp \
	$(SRCDIR)\header_tag.cpp \
	$(SRCDIR)\helpers.cpp \
	$(SRCDIR)\io.cpp \
	$(SRCDIR)\io_decorators.cpp \
	$(SRCDIR)\io_helpers.cpp \
	$(SRCDIR)\misc_support.cpp \
	$(SRCDIR)\mp3_parse.cpp \
	$(SRCDIR)\readers.cpp \
	$(SRCDIR)\spec.cpp \
	$(SRCDIR)\tag.cpp \
	$(SRCDIR)\tag_file.cpp \
	$(SRCDIR)\tag_find.cpp \
	$(SRCDIR)\tag_impl.cpp \
	$(SRCDIR)\tag_parse.cpp \
	$(SRCDIR)\tag_parse_lyrics3.cpp \
	$(SRCDIR)\tag_parse_musicmatch.cpp \
	$(SRCDIR)\tag_parse_v1.cpp \
	$(SRCDIR)\tag_render.cpp \
	$(SRCDIR)\utils.cpp \
	$(SRCDIR)\writers.cpp \
	$(ZLIBDIR)\adler32.c \
	$(ZLIBDIR)\compress.c \
	$(ZLIBDIR)\crc32.c \
	$(ZLIBDIR)\deflate.c \
	$(ZLIBDIR)\gzio.c \
	$(ZLIBDIR)\infblock.c \
	$(ZLIBDIR)\infcodes.c \
	$(ZLIBDIR)\inffast.c \
	$(ZLIBDIR)\inflate.c \
	$(ZLIBDIR)\inftrees.c \
	$(ZLIBDIR)\infutil.c \
	$(ZLIBDIR)\trees.c \
	$(ZLIBDIR)\uncompr.c \
	$(ZLIBDIR)\zutil.c

OBJS=\
	$(OBJDIR)\c_wrapper.obj \
	$(OBJDIR)\field.obj \
	$(OBJDIR)\field_binary.obj \
	$(OBJDIR)\field_integer.obj \
	$(OBJDIR)\field_string_ascii.obj \
	$(OBJDIR)\field_string_unicode.obj \
	$(OBJDIR)\frame.obj \
	$(OBJDIR)\frame_impl.obj \
	$(OBJDIR)\frame_parse.obj \
	$(OBJDIR)\frame_render.obj \
	$(OBJDIR)\globals.obj \
	$(OBJDIR)\header.obj \
	$(OBJDIR)\header_frame.obj \
	$(OBJDIR)\header_tag.obj \
	$(OBJDIR)\helpers.obj \
	$(OBJDIR)\io.obj \
	$(OBJDIR)\io_decorators.obj \
	$(OBJDIR)\io_helpers.obj \
	$(OBJDIR)\misc_support.obj \
	$(OBJDIR)\mp3_parse.obj \
	$(OBJDIR)\readers.obj \
	$(OBJDIR)\spec.obj \
	$(OBJDIR)\tag.obj \
	$(OBJDIR)\tag_file.obj \
	$(OBJDIR)\tag_find.obj \
	$(OBJDIR)\tag_impl.obj \
	$(OBJDIR)\tag_parse.obj \
	$(OBJDIR)\tag_parse_lyrics3.obj \
	$(OBJDIR)\tag_parse_musicmatch.obj \
	$(OBJDIR)\tag_parse_v1.obj \
	$(OBJDIR)\tag_render.obj \
	$(OBJDIR)\utils.obj \
	$(OBJDIR)\writers.obj \
	$(OBJDIR)\adler32.obj \
	$(OBJDIR)\compress.obj \
	$(OBJDIR)\crc32.obj \
	$(OBJDIR)\deflate.obj \
	$(OBJDIR)\gzio.obj \
	$(OBJDIR)\infblock.obj \
	$(OBJDIR)\infcodes.obj \
	$(OBJDIR)\inffast.obj \
	$(OBJDIR)\inflate.obj \
	$(OBJDIR)\inftrees.obj \
	$(OBJDIR)\infutil.obj \
	$(OBJDIR)\trees.obj \
	$(OBJDIR)\uncompr.obj \
	$(OBJDIR)\zutil.obj

{$(SRCDIR)}.cpp{$(OBJDIR)}.obj:
	@if not exist $(OBJDIR) md $(OBJDIR)
	@$(CC) $(CFLAGS) -Fo$*.obj -c $(SRCDIR)\$(*F).cpp

{$(ZLIBDIR)}.c{$(OBJDIR)}.obj:
	@if not exist $(OBJDIR) md $(OBJDIR)
	@$(CC) $(CFLAGS) -Fo$*.obj -c $(ZLIBDIR)\$(*F).c

id3lib$(SUFFIX).lib : $(OBJS)
	@lib /nologo /out:id3lib$(SUFFIX).lib $(OBJS)