root/lang/c/NetworkUpdater/trunk/Build/MSW.am @ 38335

Revision 38335, 2.3 kB (checked in by saturday06, 4 years ago)

sanity c

Line 
1bin_PROGRAMS   = test.windows
2EXTRA_PROGRAMS = sample.windows copy
3
4DEFS += -DSTRICT #-DNONAMELESSUNION -DUNICODE -D_UNICODE
5LIBS += -lole32 -loleaut32 -luuid -lwininet -lshlwapi -lcomctl32
6
7sample_windows_SOURCES = \
8  ../Windows/Sample.c \
9  ../Windows/NetworkUpdater.h \
10  ../Windows/NetworkUpdater.c
11
12sample_windows_CFLAGS  = -O0 -g $(C_WARNINGS)
13
14test_windows_SOURCES  = Test.cpp MSW.c Common.c
15test_windows_CFLAGS   = -O0 -g $(C_WARNINGS) -fprofile-arcs -ftest-coverage
16test_windows_CXXFLAGS = -O0 -g -Wall -Wextra -fprofile-arcs -ftest-coverage \
17           -fstack-protector -Wno-missing-field-initializers
18
19copy_SOURCES  = Copy.c
20copy_CPPFLAGS = -DUNICODE -D_UNICODE -DSTRICT
21copy_CFLAGS   = -O0 -g $(C_WARNINGS)
22copy_LDFLAGS  = -Wl,-nostdlib -L/usr/lib/w32api
23
24BUILT_SOURCES = \
25  $(sample_windows_SOURCES) \
26  Copy.exe.inl \
27  Extracter/7zxa/7zxa.dll.inl \
28  Extracter/7zxa/Client7z.exe.inl \
29  Extracter/7za/7za.exe.inl
30
31NETWORKUPDATER_TEMPLATES = \
32  License.txt \
33  Distribution.h \
34  Headers.h \
35  MSW.h \
36  Common.h \
37  Common.c \
38  MSW.c \
39  XDef.h \
40  \
41  Extracter/7za/7za.exe.inl \
42  Extracter/7zxa/7zxa.dll.inl \
43  Extracter/7zxa/Client7z.exe.inl \
44  Extracter/miniunz/miniunz.exe.inl \
45  Copy.exe.inl \
46  \
47  Extracter/7za/7za.h \
48  Extracter/7zxa/7zxa.h \
49  Extracter/fdi/FDIExtract.h \
50  Extracter/miniunz/miniunz.h \
51  Copy.h
52
53
54../Windows/NetworkUpdater.c: $(NETWORKUPDATER_TEMPLATES)
55        cat $(NETWORKUPDATER_TEMPLATES) | perl crlf.pl $@
56
57../Windows/NetworkUpdater.h: License.txt NetworkUpdater.h
58        cat License.txt NetworkUpdater.h | perl crlf.pl $@
59
60Extracter/7za/7za.exe.inl:
61        cd Extracter/7za/ && make
62
63Extracter/7zxa/7zxa.dll.inl Extracter/7zxa/Client7z.exe.inl:
64        cd Extracter/7zxa/ && make
65
66Extracter/miniunz/miniunz.exe.inl:
67        cd Extracter/miniunz/ && make
68
69Copy.exe.inl: Release/Copy.exe
70        ruby carray.rb NUI_UPDATER $< $@ sign
71
72zip:
73        cd ../ && rm -fr Windows && svn update
74        make
75        cd ../ && \
76        rm -fr $(PACKAGE_NAME)-$(PACKAGE_VERSION) && \
77        rm -fr $(PACKAGE_NAME)-$(PACKAGE_VERSION).zip && \
78        cp -fr Windows $(PACKAGE_NAME)-$(PACKAGE_VERSION) && \
79        find $(PACKAGE_NAME)-$(PACKAGE_VERSION) -type d -iname ".svn" | xargs rm -fr  && \
80        zip -9Tr $(PACKAGE_NAME)-$(PACKAGE_VERSION).zip $(PACKAGE_NAME)-$(PACKAGE_VERSION)
81
82
Note: See TracBrowser for help on using the browser.