Debian Codegraph @

Makefile

raw ◀ ▶
1 Debian patch touch this file
1 # This Makefile has only been tested on linux. It uses
2 # MinGW32 to cross-compile for windows. To install and
3 # configure MinGW32 on linux, see http://www.mingw.org
4
5
6 # This is where the mingw32 compiler exists in Ubuntu 8.04.
7 # Your compiler location may vary.
8 WIN32_CC=/usr/bin/i586-mingw32msvc-gcc
9
10 CFLAGS=-Wall -pedantic -O2
11 SRCDIR=nailgun-client
12 PREFIX=/usr/local
13
14 ng: ${SRCDIR}/ng.c
15 @echo "Building ng client. To build a Windows binary, type 'make ng.exe'"
16 ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o ng ${SRCDIR}/ng.c
17
18 ng.exe: ${SRCDIR}/ng.c
19 ${WIN32_CC} -o ng.exe ${SRCDIR}/ng.c -lwsock32 -O3 ${CFLAGS}
20 # any idea why the command line is so sensitive to the order of
21 # the arguments? If CFLAGS is at the beginning, it won't link.
22
23 clean:
24 @echo ""
25 @echo "If you have a Windows binary, 'make clean' won't delete it."
26 @echo "You must remove this manually. Most users won't have MinGW"
27 @echo "installed - so I'd rather not delete something you can't rebuild."
28 @echo ""
29 # rm -f ng.exe