Patch for dosbox-0.70/src/Makefile.am

Here you can discuss the development of patches.

Patch for dosbox-0.70/src/Makefile.am

Postby MiniMax » 2007-3-08 @ 23:18

Without this change, dosbox-0.70 can not be built outside the source directory.
Code: Select all
--- dosbox-0.70/src/Makefile.am         Mon Mar 27 19:17:59 2006
+++ mingwPORT/src/Makefile.am           Thu Mar  8 21:11:11 2007
@@ -14,5 +14,5 @@
 
 EXTRA_DIST = dosbox.rc dosbox.ico
 dosbox_ico.o: dosbox.rc dosbox.ico
-       $(WINDRES) dosbox.rc dosbox_ico.o
+       $(WINDRES) --include-dir="$(srcdir)" "$(srcdir)/dosbox.rc" dosbox_ico.o
DOSBox 0.73 ReadMe | DOSBox Wiki | DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Win 10 Pro
User avatar
MiniMax
Moderator
 
Posts: 5128
Joined: 2004-1-18 @ 04:15
Location: Stockholm, Sweden, Europe, Earth Interests: Old games & young women

Re: Patch for dosbox-0.70/src/Makefile.am

Postby Qbix » 2007-3-09 @ 07:14

where is the include-dir needed for (just wondering).
When writing that line at the time. I was just happy to get the icon compiling, so it's likely I forgot to add support for different directories.
(and how do you buid dosbox like that ?)
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10555
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Patch for dosbox-0.70/src/Makefile.am

Postby MiniMax » 2007-3-09 @ 09:54

Qbix wrote:where is the include-dir needed for (just wondering).

Inside dosbox.rc there is a reference to just 'dosbox.ico'. Without the --include-dir, windres don't know where to look for the ico-file.
Qbix wrote:(and how do you buid dosbox like that ?)

Code: Select all
$ cd some/random/dir
$ $HOME/src/dosbox-0.70/configure

configure then creates the Makefile in that random dir:
Code: Select all
-rw-r--r--    1 MiniMax Administ    16932 Mar  9 10:51 Makefile
-rw-r--r--    1 MiniMax Administ     6800 Mar  9 10:51 config.h
-rw-r--r--    1 MiniMax Administ    60058 Mar  9 10:51 config.log
-rwxr-xr-x    1 MiniMax Administ    39636 Mar  9 10:51 config.status
drwxr-xr-x    2 MiniMax Administ        0 Mar  9 10:51 docs
drwxr-xr-x    2 MiniMax Administ        0 Mar  9 10:51 include
drwxr-xr-x   14 MiniMax Administ        0 Mar  9 10:51 src
-rw-r--r--    1 MiniMax Administ       23 Mar  9 10:51 stamp-h1
drwxr-xr-x    2 MiniMax Administ        0 Mar  9 10:51 visualc_net

and you can do a local make:
Code: Select all
$ make
DOSBox 0.73 ReadMe | DOSBox Wiki | DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Win 10 Pro
User avatar
MiniMax
Moderator
 
Posts: 5128
Joined: 2004-1-18 @ 04:15
Location: Stockholm, Sweden, Europe, Earth Interests: Old games & young women


Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 3 guests