diff options
author | Dave Chapman <dave@dchapman.com> | 2007-02-17 02:24:37 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-02-17 02:24:37 +0000 |
commit | 92878d9ed464c21da8303d5b7434944332fcb79e (patch) | |
tree | 94d750d004f65fd2a867d1def108d9d9570d5bd5 /rbutil | |
parent | 139fb1af20621e233f8f33cd1d984cb79231b7d4 (diff) | |
download | rockbox-92878d9ed464c21da8303d5b7434944332fcb79e.tar.gz rockbox-92878d9ed464c21da8303d5b7434944332fcb79e.zip |
FS #6443 from Jonas Häggqvist - add an "install" target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12343 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/rbutil/Makefile b/rbutil/Makefile index 426f0cade4..a7f9102fed 100644 --- a/rbutil/Makefile +++ b/rbutil/Makefile | |||
@@ -11,8 +11,13 @@ | |||
11 | 11 | ||
12 | 12 | ||
13 | CXX=$(shell $(PREFIX)wx-config --cxx) | 13 | CXX=$(shell $(PREFIX)wx-config --cxx) |
14 | OBJS=rbutil.o rbutilApp.o rbutilFrm.o wizard_pages.o installlog.o | 14 | INC = |
15 | OBJS=rbutil.o rbutilApp.o rbutilFrm.o wizard_pages.o bootloaders.o installlog.o ipodpatcher/ipodpatcher.o ipodpatcher/ipodio-posix.o fwpatcher/md5.o fwpatcher/iriver.o | ||
15 | 16 | ||
17 | # Install into /usr/local by default | ||
18 | ifndef DESTDIR | ||
19 | DESTDIR=/usr/local | ||
20 | endif | ||
16 | 21 | ||
17 | # type "make WIN=1" for a Windows build using the Debian mingw cross-compiler | 22 | # type "make WIN=1" for a Windows build using the Debian mingw cross-compiler |
18 | ifdef WIN | 23 | ifdef WIN |
@@ -27,7 +32,10 @@ endif | |||
27 | all: rbutil$(EXT) | 32 | all: rbutil$(EXT) |
28 | 33 | ||
29 | .cpp.o : | 34 | .cpp.o : |
30 | $(CXX) -c `$(PREFIX)wx-config --cxxflags` -o $@ $< | 35 | $(CXX) $(INC) -c `$(PREFIX)wx-config --cxxflags` -o $@ $< |
36 | |||
37 | .c.o : | ||
38 | $(CC) $(INC) -c `$(PREFIX)wx-config --cxxflags` -o $@ $< | ||
31 | 39 | ||
32 | rbutil-rc.o: rbutil-rc.rc | 40 | rbutil-rc.o: rbutil-rc.rc |
33 | $(WINDRES) `$(PREFIX)wx-config --cxxflags` -O coff -F pe-i386 -o $@ $< | 41 | $(WINDRES) `$(PREFIX)wx-config --cxxflags` -O coff -F pe-i386 -o $@ $< |
@@ -38,3 +46,6 @@ rbutil$(EXT): $(OBJS) | |||
38 | .PHONY: clean | 46 | .PHONY: clean |
39 | clean: | 47 | clean: |
40 | rm -f rbutil rbutil.exe $(OBJS) *~ | 48 | rm -f rbutil rbutil.exe $(OBJS) *~ |
49 | |||
50 | .PHONY: install | ||
51 | install -D rbutil$(EXT) $(DESTDIR)/bin/rbutil$(EXT) | ||