Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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 install: ng
19 install -d ${PREFIX}/bin
20 install ng ${PREFIX}/bin
21
22 ng.exe: ${SRCDIR}/ng.c
23 ${WIN32_CC} -o ng.exe ${SRCDIR}/ng.c -lwsock32 -O3 ${CFLAGS}
24 # any idea why the command line is so sensitive to the order of
25 # the arguments? If CFLAGS is at the beginning, it won't link.
26
27 clean:
28 @echo ""
29 @echo "If you have a Windows binary, 'make clean' won't delete it."
30 @echo "You must remove this manually. Most users won't have MinGW"
31 @echo "installed - so I'd rather not delete something you can't rebuild."
32 @echo ""
33 rm -f ng
34 # rm -f ng.exe