-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile.mingw32
62 lines (54 loc) · 1.7 KB
/
Makefile.mingw32
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
include Makefile.mingw32.def
out := openhpi-${VERSION}-win32
doc := ${out}/doc
libs := ${out}/openhpi.windows.libraries
devel := ${out}/devel
progs := ${out}
plugins := ${out}/openhpi.windows.plugins
openhpi_libs := utils \
transport \
marshal \
baselib \
clients \
clients/hpixml \
openhpid \
plugins/slave
.PHONY: all clean $(openhpi_libs)
all: $(openhpi_libs)
$(openhpi_libs):
make -f Makefile.mingw32 -C $@
clean:
for d in $(openhpi_libs); \
do \
make -f Makefile.mingw32 -C $$d clean; \
done
rm -rf ${out}
out: all
rm -rf ${out}
mkdir -p ${out}
mkdir -p ${doc}
cp README.windows ${doc}/README.windows.txt
mkdir -p ${libs}
cp transport/libopenhpitransport.dll ${libs}
cp marshal/libopenhpimarshal.dll ${libs}
cp utils/libopenhpiutils.dll ${libs}
cp baselib/libopenhpi.dll ${libs}
cp ${GLIB_DIR}/bin/libglib-2.0-0.dll ${libs}
cp ${GLIB_DIR}/bin/libgmodule-2.0-0.dll ${libs}
cp ${GLIB_DIR}/bin/libgthread-2.0-0.dll ${libs}
cp mingw32/openhpi.windows.libraries.manifest ${libs}
mkdir -p ${devel}
cat include/SaHpi.h | sed -e 's/ __attribute__.*/;/' -e 's/#define SAHPI_API/#define SAHPI_API __declspec(dllimport)/' > ${devel}/SaHpi.h
cp include/oHpi.h ${devel}
cp utils/libopenhpiutils.a ${devel}
cp utils/libopenhpiutils.def ${devel}
cp baselib/libopenhpi.a ${devel}
cp baselib/libopenhpi.def ${devel}
cp mingw32/app.manifest ${devel}
mkdir -p ${progs}
cp clients/*.exe ${progs}
cp clients/hpixml/hpixml.exe ${progs}
cp openhpid/openhpid.exe ${progs}
mkdir -p ${plugins}
cp plugins/slave/libslave.dll ${plugins}
cp mingw32/openhpi.windows.plugins.manifest ${plugins}