forked from hoehrmann/pngwolf
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.vc
70 lines (52 loc) · 2.29 KB
/
Makefile.vc
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
##
## pngwolf-zopfli
##
## Visual C++ Makefile
##
.SUFFIXES:
.SUFFIXES: .obj .cxx .C .c
CFLAGS = /W2 /O2 /fp:fast /GL /openmp
CXXFLAGS = $(CFLAGS) /TP /EHsc
CPPFLAGS = /DNDEBUG /DZLIB_CONST /Igalib /Ilibdeflate /Izlib /Izopfli\src\zopfli
LDFLAGS = /release
LDLIBS = ws2_32.lib
!IF "$(PLATFORM)"=="X64" || "$(PLATFORM)"=="x64"
LDFLAGS = $(LDFLAGS) /opt:ref,icf /subsystem:console,5.02
!ELSEIF "$(PLATFORM)"=="X86" || "$(PLATFORM)"=="x86"
LDFLAGS = $(LDFLAGS) /opt:ref /subsystem:console,5.01
!ENDIF
objs_pngwolf = pngwolf.obj
objs_galib = galib\ga\GA1DArrayGenome.obj galib\ga\GAAllele.obj \
galib\ga\GABaseGA.obj galib\ga\gabincvt.obj galib\ga\GAGenome.obj \
galib\ga\GAIncGA.obj galib\ga\GAParameter.obj galib\ga\GAPopulation.obj \
galib\ga\garandom.obj galib\ga\gaerror.obj galib\ga\GAScaling.obj \
galib\ga\GASelector.obj galib\ga\GAStatistics.obj
objs_libdeflate = libdeflate\lib\adler32.obj libdeflate\lib\aligned_malloc.obj \
libdeflate\lib\deflate_compress.obj libdeflate\lib\x86_cpu_features.obj \
libdeflate\lib\zlib_compress.obj
objs_zlib = zlib\adler32.obj zlib\crc32.obj zlib\deflate.obj zlib\compress.obj \
zlib\infback.obj zlib\inffast.obj zlib\inflate.obj zlib\inftrees.obj zlib\trees.obj \
zlib\uncompr.obj zlib\zutil.obj
objs_zopfli = zopfli\src\zopfli\blocksplitter.obj zopfli\src\zopfli\cache.obj \
zopfli\src\zopfli\deflate.obj zopfli\src\zopfli\gzip_container.obj \
zopfli\src\zopfli\hash.obj zopfli\src\zopfli\katajainen.obj \
zopfli\src\zopfli\lz77.obj zopfli\src\zopfli\squeeze.obj \
zopfli\src\zopfli\tree.obj zopfli\src\zopfli\util.obj \
zopfli\src\zopfli\zlib_container.obj zopfli\src\zopfli\zopfli_lib.obj
objs = $(objs_pngwolf) $(objs_galib) $(objs_libdeflate) $(objs_zlib) $(objs_zopfli)
target = pngwolf.exe
all: $(target)
.cxx.obj:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) /c $<
{galib\ga}.C{galib\ga}.obj::
$(CXX) /MP $(CXXFLAGS) $(CPPFLAGS) /Fogalib\ga\ /c $<
{libdeflate\lib}.c{libdeflate\lib}.obj::
$(CC) /MP $(CFLAGS) $(CPPFLAGS) /Ilibdeflate\common /Folibdeflate\lib\ /c $<
{zlib}.c{zlib}.obj::
$(CC) /MP $(CFLAGS) $(CPPFLAGS) /Fozlib\ /c $<
{zopfli\src\zopfli}.c{zopfli\src\zopfli}.obj::
$(CC) /MP $(CFLAGS) $(CPPFLAGS) /Fozopfli\src\zopfli\ /c $<
$(target): $(objs)
$(CC) $(CFLAGS) $(CPPFLAGS) /Fe$@ $** /link $(LDFLAGS) $(LDLIBS)
clean:
del /Q $(objs) $(target)