~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/deadwood-github/tools/coLunacyDNS/compile.win32.service.sh -rwxr-xr-x 480 bytes
ca00f282 — Sam Trenholme MaraDNS release 3.5.0021 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

if [ ! -e /mingw ] ; then
	echo Only run this in Mingw
	exit 1
fi

# No symlinks
rm -f lauxlib.h lua.h luaconf.h lualib.h

for a in lauxlib.h lua.h luaconf.h lualib.h ; do
	cp ../../lunacy/$a .
done

cd ../../lunacy/
export CC="gcc"
make -f Makefile
cd ../tools/coLunacyDNS/
echo $CC -Wall -O3 -DMINGW -c -o coLunacyDNS.o coLunacyDNS.c
$CC -Wall -O3 -DMINGW -c -o coLunacyDNS.o coLunacyDNS.c
$CC -O3 -o coLunacyDNS.exe coLunacyDNS.o ../../lunacy/liblua.a -lm -lwsock32