Added some more useful macros.
[wine] / programs / winetest / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 MODULE    = winetest.exe
6 APPMODE   = cui
7 IMPORTS   = kernel32
8
9 EXTRACFLAGS = `perl -MExtUtils::Embed -e ccflags`
10 EXTRALIBS   = `perl -MExtUtils::Embed -e ldopts`
11 EXTRAINCL   = `perl -MExtUtils::Embed -e perl_inc`
12 XSUBPPDIR   = `perl -MConfig -e 'print $$Config::Config{privlibexp}'`/ExtUtils
13
14 C_SRCS = winetest.c
15
16 EXTRA_SRCS = wtmain.c
17
18 EXTRA_OBJS = wine.o
19
20 EXTRASUBDIRS = include tests
21
22 PLTESTPROGRAM = $(MODULE)$(DLLEXT)
23
24 PLTESTS = \
25         tests/wine.pl
26
27 CROSSTEST = wtmain.cross.o
28
29 # override all: target so that we don't build the Perl stuff by default
30 test_environment: wtmain.o @CROSSTEST@
31
32 @MAKE_PROG_RULES@
33
34 all: test_environment
35
36 wine.c: wine.xs
37         perl $(XSUBPPDIR)/xsubpp -typemap $(XSUBPPDIR)/typemap $(SRCDIR)/wine.xs >wine.c || $(RM) wine.c
38
39 clean::
40         $(RM) wine.c
41
42 .PHONY: test_environment
43
44 ### Dependencies: