Add PhysicsFS instructions
[mingw-xscripts.git] / Makefile
bloba062f355554067b58ccec2bd5637f49ed12fb012
1 # These variables override the corresponding variables in the
2 # mingw-environment.sh script.
4 # MinGW prefix (/opt/mingw, ~/mingw, etc.)
5 # This is where 'mingw-make install' installs to.
6 MINGW_PREFIX := ~/dev/mingw
8 # If a project needs to use some of its own functionality during the
9 # build, it can use the WINE variable in build scripts. If none of
10 # the projects you're interested in do this and you don't have Wine
11 # installed, just ignore this.
12 WINE := /usr/lib/wine/wine.bin
14 # The "canonical system name" of your system. See
15 # mingw-environment.sh for more info.
16 BUILD := i686-linux-gnu
18 # The exact prefix of the MinGW cross binaries, sans hyphen.
19 TARGET := i586-mingw32msvc
21 # Usual Makefile stuff
23 # Installation prefix
24 # This is where this Makefile installs to.
25 PREFIX := $(HOME)
26 BINDIR := $(PREFIX)/bin
28 ENV_SCRIPT := mingw-environment.sh
29 SCRIPTS := \
30 $(ENV_SCRIPT) \
31 mingw-make \
32 mingw-configure \
33 mingw-list-dlls \
34 mingw-strip-dlls
36 all:
38 clean:
40 install:
41 sed -e 's,^MINGW_PREFIX=.*$$,MINGW_PREFIX=$(MINGW_PREFIX),' \
42 -e 's,^WINE=.*$$,WINE=$(WINE),' \
43 -e 's,^BUILD=.*$$,BUILD=$(BUILD),' \
44 -e 's,^TARGET=.*$$,TARGET=$(TARGET),' \
45 < $(ENV_SCRIPT) > $(ENV_SCRIPT).mod
46 mv -f $(ENV_SCRIPT).mod $(ENV_SCRIPT)
48 install -d $(BINDIR)
49 install $(SCRIPTS) $(BINDIR)
51 uninstall:
52 $(RM) $(addprefix $(BINDIR)/,$(SCRIPTS))