winebuild: Add a spawn() helper function to avoid starting a shell where possible.
[wine] / tools / winebuild / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 EXEEXT    = @EXEEXT@
6 DEFS      = -D__WINESRC__ $(EXTRADEFS)
7
8 PROGRAMS = winebuild$(EXEEXT)
9 MANPAGES = winebuild.man
10 MODULE   = none
11
12 C_SRCS = \
13         import.c \
14         main.c \
15         parser.c \
16         relay.c \
17         res16.c \
18         res32.c \
19         spec16.c \
20         spec32.c \
21         utils.c
22
23 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
24
25 all: $(PROGRAMS) $(MANPAGES)
26
27 @MAKE_RULES@
28
29 winebuild$(EXEEXT): $(OBJS)
30         $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBPORT) $(LDFLAGS)
31
32 install install-dev:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS)
33         $(INSTALL_PROGRAM) winebuild$(EXEEXT) $(DESTDIR)$(bindir)/winebuild$(EXEEXT)
34         $(INSTALL_DATA) winebuild.man $(DESTDIR)$(mandir)/man$(prog_manext)/winebuild.$(prog_manext)
35
36 uninstall::
37         $(RM) $(DESTDIR)$(bindir)/winebuild$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/winebuild.$(prog_manext)