[ucsim-z80] Fix #3828: uCsim SM83 flags simulation
[sdcc.git] / sdcc-cf / packages / build.wine / Makefile
blobcbadccc29986e81dfce026c4f126d4cbd105a4d3
1 ###############################################################################
2 # To build 64bit wine:
3 # make WINE64=1
5 include ../packages.mk
7 PACKAGE=wine
9 #VERSION=1.3.8
10 VERSION=1.4.1
12 WINE_DIR=$(PACKAGE)-$(VERSION)
14 CFGFLAGS=--without-x --without-freetype --prefix=$(LOCAL_DIR) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)"
15 ifdef WINE64
16 ENABLE_WIN64=--enable-win64
17 WITH_WINE64=--with-wine64=../wine64
18 endif
20 .PHONY: all
21 all: $(PACKAGE)-install.tag clean
23 download/$(PACKAGE)-$(VERSION).tar.bz2:
24 $(WGET) http://sourceforge.net/projects/wine/files/Source/$(PACKAGE)-$(VERSION).tar.bz2
26 $(PACKAGE)-unpack.tag: download/$(PACKAGE)-$(VERSION).tar.bz2
27 tar xjvf download/$(PACKAGE)-$(VERSION).tar.bz2
28 touch $@
30 ifdef WINE64
31 $(PACKAGE)64-configure.tag: $(PACKAGE)-unpack.tag
32 mkdir wine64
33 cd wine64 && \
34 ../$(WINE_DIR)/configure $(ENABLE_WIN64) $(CFGFLAGS)
36 $(PACKAGE)64-make.tag: $(PACKAGE)64-configure.tag
37 $(MAKE) -C wine64
38 endif
40 $(PACKAGE)32-configure.tag: $(PACKAGE)-unpack.tag
41 mkdir wine_obj
42 cd wine_obj && \
43 ../$(WINE_DIR)/configure $(WITH_WINE64) $(CFGFLAGS)
44 touch $@
46 $(PACKAGE)32-make.tag: $(PACKAGE)32-configure.tag
47 $(MAKE) -C wine_obj
48 touch $@
50 ifdef WINE64
51 $(PACKAGE)-install.tag: $(PACKAGE)64-make.tag $(PACKAGE)32-make.tag
52 $(MAKE) -C wine64 install prefix=$(LOCAL_DIR)
53 $(MAKE) -C wine_obj install prefix=$(LOCAL_DIR)
54 touch $@
55 else
56 $(PACKAGE)-install.tag: $(PACKAGE)32-make.tag
57 $(MAKE) -C wine_obj install prefix=$(LOCAL_DIR)
58 touch $@
59 endif
61 .PHONY: clean
62 clean:
63 rm -rf $(WINE_DIR) wine64 wine_obj download/* *.tag