mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[mingw] added --with-freedos to configure
* default is enabled (=> add --without-freedos to disable) * also update the release process as a result * also update version to rufus next * also fixed FreeDOS embedded files lost when RC is edited in Visual Studio
This commit is contained in:
parent
3187f71933
commit
55e6cd8023
9 changed files with 115 additions and 204 deletions
13
Makefile.am
13
Makefile.am
|
@ -4,11 +4,12 @@ TARGET = rufus
|
|||
# This step produces the UPX compressed and signed releases that are made available for public download
|
||||
release: all
|
||||
@mv src/$(TARGET)$(EXEEXT) .
|
||||
@mv src/$(TARGET)_fd$(EXEEXT) .
|
||||
@$(STRIP) $(TARGET)$(EXEEXT)
|
||||
@$(STRIP) $(TARGET)_fd$(EXEEXT)
|
||||
@upx $(TARGET)$(EXEEXT)
|
||||
@upx $(TARGET)_fd$(EXEEXT)
|
||||
@cmd.exe /k _sign.cmd $(TARGET)$(EXEEXT) $(TARGET)_fd$(EXEEXT)
|
||||
@mv $(TARGET)$(EXEEXT) $(TARGET)_v$(VERSION)$(EXEEXT)
|
||||
@mv $(TARGET)_fd$(EXEEXT) $(TARGET)_v$(VERSION)f$(EXEEXT)
|
||||
@mv $(TARGET)$(EXEEXT) $(TARGET)_v$(VERSION)$(EXESUFFIX)$(EXEEXT)
|
||||
# Don't want to enter a password twice => only sign when we have both release files
|
||||
@if [ -f $(TARGET)_v$(VERSION)f$(EXEEXT) ]; then \
|
||||
if [ -f $(TARGET)_v$(VERSION)$(EXEEXT) ]; then \
|
||||
cmd.exe /k _sign.cmd $(TARGET)_v$(VERSION)$(EXEEXT) $(TARGET)_v$(VERSION)f$(EXEEXT); \
|
||||
fi; \
|
||||
fi
|
15
Makefile.in
15
Makefile.in
|
@ -71,6 +71,7 @@ AMTAR = @AMTAR@
|
|||
AM_CFLAGS = @AM_CFLAGS@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AM_LDFLAGS = @AM_LDFLAGS@
|
||||
AM_RCFLAGS = @AM_RCFLAGS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
|
@ -84,6 +85,7 @@ ECHO_C = @ECHO_C@
|
|||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EXEEXT = @EXEEXT@
|
||||
EXESUFFIX = @EXESUFFIX@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
|
@ -444,14 +446,15 @@ uninstall-am:
|
|||
# This step produces the UPX compressed and signed releases that are made available for public download
|
||||
release: all
|
||||
@mv src/$(TARGET)$(EXEEXT) .
|
||||
@mv src/$(TARGET)_fd$(EXEEXT) .
|
||||
@$(STRIP) $(TARGET)$(EXEEXT)
|
||||
@$(STRIP) $(TARGET)_fd$(EXEEXT)
|
||||
@upx $(TARGET)$(EXEEXT)
|
||||
@upx $(TARGET)_fd$(EXEEXT)
|
||||
@cmd.exe /k _sign.cmd $(TARGET)$(EXEEXT) $(TARGET)_fd$(EXEEXT)
|
||||
@mv $(TARGET)$(EXEEXT) $(TARGET)_v$(VERSION)$(EXEEXT)
|
||||
@mv $(TARGET)_fd$(EXEEXT) $(TARGET)_v$(VERSION)f$(EXEEXT)
|
||||
@mv $(TARGET)$(EXEEXT) $(TARGET)_v$(VERSION)$(EXESUFFIX)$(EXEEXT)
|
||||
# Don't want to enter a password twice => only sign when we have both release files
|
||||
@if [ -f $(TARGET)_v$(VERSION)f$(EXEEXT) ]; then \
|
||||
if [ -f $(TARGET)_v$(VERSION)$(EXEEXT) ]; then \
|
||||
cmd.exe /k _sign.cmd $(TARGET)_v$(VERSION)$(EXEEXT) $(TARGET)_v$(VERSION)f$(EXEEXT); \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
|
|
10
_release.sh
Normal file
10
_release.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
rm -f rufus*.exe
|
||||
./configure --without-freedos
|
||||
make clean
|
||||
make release -j2
|
||||
./configure --with-freedos
|
||||
# The only difference between FreeDOS and non FreeDOS is with the RC
|
||||
# => instead of invoking 'make clean, just remove the RC object
|
||||
rm src/rufus_rc.o
|
||||
make release -j2
|
|
@ -1,5 +1,4 @@
|
|||
:retry
|
||||
@set password=
|
||||
@set /p password=Please enter PFX password:
|
||||
@E:\WinDDK\7600.16385.0\bin\amd64\signtool sign /v /f D:\Secured\akeo\pbatard.p12 /p %password% /t http://time.certum.pl %1 %2 %3 %4
|
||||
@if ERRORLEVEL 1 goto retry
|
||||
|
|
57
configure
vendored
57
configure
vendored
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.68 for rufus 1.0.6.
|
||||
# Generated by GNU Autoconf 2.68 for rufus 1.0.7.
|
||||
#
|
||||
# Report bugs to <https://github.com/pbatard/rufus/issues>.
|
||||
#
|
||||
|
@ -559,16 +559,18 @@ MAKEFLAGS=
|
|||
# Identity of this package.
|
||||
PACKAGE_NAME='rufus'
|
||||
PACKAGE_TARNAME='rufus'
|
||||
PACKAGE_VERSION='1.0.6'
|
||||
PACKAGE_STRING='rufus 1.0.6'
|
||||
PACKAGE_VERSION='1.0.7'
|
||||
PACKAGE_STRING='rufus 1.0.7'
|
||||
PACKAGE_BUGREPORT='https://github.com/pbatard/rufus/issues'
|
||||
PACKAGE_URL='https://github.com/pbatard/rufus'
|
||||
PACKAGE_URL='http://rufus.akeo.ie'
|
||||
|
||||
ac_unique_file="src/rufus.c"
|
||||
ac_subst_vars='am__EXEEXT_FALSE
|
||||
am__EXEEXT_TRUE
|
||||
LTLIBOBJS
|
||||
LIBOBJS
|
||||
EXESUFFIX
|
||||
AM_RCFLAGS
|
||||
AM_LDFLAGS
|
||||
AM_CFLAGS
|
||||
VISIBILITY_CFLAGS
|
||||
|
@ -648,6 +650,7 @@ ac_subst_files=''
|
|||
ac_user_opts='
|
||||
enable_option_checking
|
||||
enable_silent_rules
|
||||
with_freedos
|
||||
enable_debug
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
|
@ -1200,7 +1203,7 @@ if test "$ac_init_help" = "long"; then
|
|||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures rufus 1.0.6 to adapt to many kinds of systems.
|
||||
\`configure' configures rufus 1.0.7 to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
|
@ -1266,7 +1269,7 @@ fi
|
|||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of rufus 1.0.6:";;
|
||||
short | recursive ) echo "Configuration of rufus 1.0.7:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
|
@ -1276,7 +1279,12 @@ Optional Features:
|
|||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
--enable-silent-rules less verbose build output (undo: `make V=1')
|
||||
--disable-silent-rules verbose build output (undo: `make V=0')
|
||||
--enable-debug keep debug symbols for gdb (default y)
|
||||
--enable-debug keep debug symbols for gdb (default=yes)
|
||||
|
||||
Optional Packages:
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
--with-freedos embed FreeDOS support (default=yes)
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
|
@ -1291,7 +1299,7 @@ Use these variables to override the choices made by `configure' or to help
|
|||
it to find libraries and programs with nonstandard names/locations.
|
||||
|
||||
Report bugs to <https://github.com/pbatard/rufus/issues>.
|
||||
rufus home page: <https://github.com/pbatard/rufus>.
|
||||
rufus home page: <http://rufus.akeo.ie>.
|
||||
_ACEOF
|
||||
ac_status=$?
|
||||
fi
|
||||
|
@ -1354,7 +1362,7 @@ fi
|
|||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
rufus configure 1.0.6
|
||||
rufus configure 1.0.7
|
||||
generated by GNU Autoconf 2.68
|
||||
|
||||
Copyright (C) 2010 Free Software Foundation, Inc.
|
||||
|
@ -1409,7 +1417,7 @@ cat >config.log <<_ACEOF
|
|||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by rufus $as_me 1.0.6, which was
|
||||
It was created by rufus $as_me 1.0.7, which was
|
||||
generated by GNU Autoconf 2.68. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
|
@ -2224,7 +2232,7 @@ fi
|
|||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='rufus'
|
||||
VERSION='1.0.6'
|
||||
VERSION='1.0.7'
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
|
@ -3365,13 +3373,18 @@ $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
|
|||
AM_CFLAGS="${AM_CFLAGS} -DWINVER=0x501 -D_WIN32_IE=0x501 -D_WIN32_WINNT=0x501"
|
||||
AM_LDFLAGS="${AM_LDFLAGS} -Wl,-no-undefined"
|
||||
|
||||
# Debug logging
|
||||
#AC_ARG_ENABLE([log], [AS_HELP_STRING([--enable-log], [enable logging (default y)])],
|
||||
# [log_enabled=$enableval],
|
||||
# [log_enabled='yes'])
|
||||
#if test "x$log_enabled" != "xno"; then
|
||||
# AC_DEFINE([RUFUS_DEBUG], [1], [Debug logging])
|
||||
#fi
|
||||
|
||||
# Check whether --with-freedos was given.
|
||||
if test "${with_freedos+set}" = set; then :
|
||||
withval=$with_freedos;
|
||||
else
|
||||
with_freedos=yes
|
||||
fi
|
||||
|
||||
if test "x$with_freedos" != "xno" ; then
|
||||
AM_RCFLAGS="-DWITH_FREEDOS"
|
||||
EXESUFFIX="f"
|
||||
fi
|
||||
|
||||
# Debug symbols
|
||||
# Check whether --enable-debug was given.
|
||||
|
@ -3416,6 +3429,8 @@ AM_CFLAGS="$AM_CFLAGS -std=gnu99 -Wshadow -Wall -Wundef -Wunused -Wstrict-protot
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
ac_config_files="$ac_config_files Makefile"
|
||||
|
||||
ac_config_files="$ac_config_files src/Makefile"
|
||||
|
@ -3982,7 +3997,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
|||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by rufus $as_me 1.0.6, which was
|
||||
This file was extended by rufus $as_me 1.0.7, which was
|
||||
generated by GNU Autoconf 2.68. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
|
@ -4030,13 +4045,13 @@ Configuration files:
|
|||
$config_files
|
||||
|
||||
Report bugs to <https://github.com/pbatard/rufus/issues>.
|
||||
rufus home page: <https://github.com/pbatard/rufus>."
|
||||
rufus home page: <http://rufus.akeo.ie>."
|
||||
|
||||
_ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||
ac_cs_version="\\
|
||||
rufus config.status 1.0.6
|
||||
rufus config.status 1.0.7
|
||||
configured by $0, generated by GNU Autoconf 2.68,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
|
22
configure.ac
22
configure.ac
|
@ -1,4 +1,4 @@
|
|||
AC_INIT([rufus], [1.0.6], [https://github.com/pbatard/rufus/issues], [rufus], [https://github.com/pbatard/rufus])
|
||||
AC_INIT([rufus], [1.0.7], [https://github.com/pbatard/rufus/issues], [rufus], [http://rufus.akeo.ie])
|
||||
AM_INIT_AUTOMAKE([-Wno-portability foreign no-dist no-dependencies])
|
||||
AC_CONFIG_SRCDIR([src/rufus.c])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
@ -36,16 +36,18 @@ AC_DEFINE([_GNU_SOURCE], [], [Use GNU extensions])
|
|||
AM_CFLAGS="${AM_CFLAGS} -DWINVER=0x501 -D_WIN32_IE=0x501 -D_WIN32_WINNT=0x501"
|
||||
AM_LDFLAGS="${AM_LDFLAGS} -Wl,-no-undefined"
|
||||
|
||||
# Debug logging
|
||||
#AC_ARG_ENABLE([log], [AS_HELP_STRING([--enable-log], [enable logging (default y)])],
|
||||
# [log_enabled=$enableval],
|
||||
# [log_enabled='yes'])
|
||||
#if test "x$log_enabled" != "xno"; then
|
||||
# AC_DEFINE([RUFUS_DEBUG], [1], [Debug logging])
|
||||
#fi
|
||||
AC_ARG_WITH([freedos],
|
||||
[AS_HELP_STRING([--with-freedos],
|
||||
[embed FreeDOS support (default=yes)])],
|
||||
[],
|
||||
[with_freedos=yes])
|
||||
if test "x$with_freedos" != "xno" ; then
|
||||
AM_RCFLAGS="-DWITH_FREEDOS"
|
||||
EXESUFFIX="f"
|
||||
fi
|
||||
|
||||
# Debug symbols
|
||||
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [keep debug symbols for gdb (default y)]),
|
||||
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [keep debug symbols for gdb (default=yes)]),
|
||||
[debug_enabled=$enableval],
|
||||
[debug_enabled='yes'])
|
||||
if test "x$debug_enabled" = "xyes" ; then
|
||||
|
@ -67,6 +69,8 @@ AM_CFLAGS="$AM_CFLAGS -std=gnu99 -Wshadow -Wall -Wundef -Wunused -Wstrict-protot
|
|||
AC_SUBST([VISIBILITY_CFLAGS])
|
||||
AC_SUBST([AM_CFLAGS])
|
||||
AC_SUBST([AM_LDFLAGS])
|
||||
AC_SUBST([AM_RCFLAGS])
|
||||
AC_SUBST([EXESUFFIX])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_CONFIG_FILES([src/Makefile])
|
||||
|
|
|
@ -1,24 +1,13 @@
|
|||
#INCLUDES = -I$(top_srcdir)
|
||||
|
||||
noinst_PROGRAMS = rufus rufus_fd
|
||||
noinst_PROGRAMS = rufus
|
||||
|
||||
pkg_v_rc = $(pkg_v_rc_$(V))
|
||||
pkg_v_rc_ = $(pkg_v_rc_$(AM_DEFAULT_VERBOSITY))
|
||||
pkg_v_rc_0 = @echo " RC $@";
|
||||
|
||||
# NB: There's a good reason we don't do something more elegant than copy/paste for _fd
|
||||
rufus_rc.o: rufus.rc
|
||||
$(pkg_v_rc)$(WINDRES) -i $< -o $@
|
||||
|
||||
rufus_fd_rc.o: rufus.rc
|
||||
$(pkg_v_rc)$(WINDRES) -DWITH_FREEDOS -i $< -o $@
|
||||
%_rc.o: %.rc
|
||||
$(pkg_v_rc)$(WINDRES) $(AM_RCFLAGS) -i $< -o $@
|
||||
|
||||
rufus_SOURCES = fat12.c fat16.c fat32.c partition_info.c br.c file.c drive.c dos.c dos_locale.c badblocks.c format.c stdio.c stdlg.c rufus.c
|
||||
rufus_CFLAGS = -I./inc $(AM_CFLAGS)
|
||||
rufus_LDFLAGS = $(AM_LDFLAGS) -mwindows
|
||||
rufus_LDADD = rufus_rc.o -lsetupapi -lole32 -lgdi32
|
||||
|
||||
rufus_fd_SOURCES = fat12.c fat16.c fat32.c partition_info.c br.c file.c drive.c dos.c dos_locale.c badblocks.c format.c stdio.c stdlg.c rufus.c
|
||||
rufus_fd_CFLAGS = -I./inc $(AM_CFLAGS)
|
||||
rufus_fd_LDFLAGS = $(AM_LDFLAGS) -mwindows
|
||||
rufus_fd_LDADD = rufus_fd_rc.o -lsetupapi -lole32 -lgdi32
|
147
src/Makefile.in
147
src/Makefile.in
|
@ -15,8 +15,6 @@
|
|||
|
||||
@SET_MAKE@
|
||||
|
||||
#INCLUDES = -I$(top_srcdir)
|
||||
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
@ -34,7 +32,7 @@ POST_INSTALL = :
|
|||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
noinst_PROGRAMS = rufus$(EXEEXT) rufus_fd$(EXEEXT)
|
||||
noinst_PROGRAMS = rufus$(EXEEXT)
|
||||
subdir = src
|
||||
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
|
@ -56,18 +54,6 @@ rufus_OBJECTS = $(am_rufus_OBJECTS)
|
|||
rufus_DEPENDENCIES = rufus_rc.o
|
||||
rufus_LINK = $(CCLD) $(rufus_CFLAGS) $(CFLAGS) $(rufus_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
am_rufus_fd_OBJECTS = rufus_fd-fat12.$(OBJEXT) \
|
||||
rufus_fd-fat16.$(OBJEXT) rufus_fd-fat32.$(OBJEXT) \
|
||||
rufus_fd-partition_info.$(OBJEXT) rufus_fd-br.$(OBJEXT) \
|
||||
rufus_fd-file.$(OBJEXT) rufus_fd-drive.$(OBJEXT) \
|
||||
rufus_fd-dos.$(OBJEXT) rufus_fd-dos_locale.$(OBJEXT) \
|
||||
rufus_fd-badblocks.$(OBJEXT) rufus_fd-format.$(OBJEXT) \
|
||||
rufus_fd-stdio.$(OBJEXT) rufus_fd-stdlg.$(OBJEXT) \
|
||||
rufus_fd-rufus.$(OBJEXT)
|
||||
rufus_fd_OBJECTS = $(am_rufus_fd_OBJECTS)
|
||||
rufus_fd_DEPENDENCIES = rufus_fd_rc.o
|
||||
rufus_fd_LINK = $(CCLD) $(rufus_fd_CFLAGS) $(CFLAGS) \
|
||||
$(rufus_fd_LDFLAGS) $(LDFLAGS) -o $@
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@
|
||||
depcomp =
|
||||
am__depfiles_maybe =
|
||||
|
@ -90,7 +76,7 @@ am__v_CCLD_0 = @echo " CCLD " $@;
|
|||
AM_V_GEN = $(am__v_GEN_$(V))
|
||||
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
SOURCES = $(rufus_SOURCES) $(rufus_fd_SOURCES)
|
||||
SOURCES = $(rufus_SOURCES)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
ACLOCAL = @ACLOCAL@
|
||||
|
@ -98,6 +84,7 @@ AMTAR = @AMTAR@
|
|||
AM_CFLAGS = @AM_CFLAGS@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AM_LDFLAGS = @AM_LDFLAGS@
|
||||
AM_RCFLAGS = @AM_RCFLAGS@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
|
@ -111,6 +98,7 @@ ECHO_C = @ECHO_C@
|
|||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EXEEXT = @EXEEXT@
|
||||
EXESUFFIX = @EXESUFFIX@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
|
@ -185,10 +173,6 @@ rufus_SOURCES = fat12.c fat16.c fat32.c partition_info.c br.c file.c drive.c dos
|
|||
rufus_CFLAGS = -I./inc $(AM_CFLAGS)
|
||||
rufus_LDFLAGS = $(AM_LDFLAGS) -mwindows
|
||||
rufus_LDADD = rufus_rc.o -lsetupapi -lole32 -lgdi32
|
||||
rufus_fd_SOURCES = fat12.c fat16.c fat32.c partition_info.c br.c file.c drive.c dos.c dos_locale.c badblocks.c format.c stdio.c stdlg.c rufus.c
|
||||
rufus_fd_CFLAGS = -I./inc $(AM_CFLAGS)
|
||||
rufus_fd_LDFLAGS = $(AM_LDFLAGS) -mwindows
|
||||
rufus_fd_LDADD = rufus_fd_rc.o -lsetupapi -lole32 -lgdi32
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
|
@ -229,9 +213,6 @@ clean-noinstPROGRAMS:
|
|||
rufus$(EXEEXT): $(rufus_OBJECTS) $(rufus_DEPENDENCIES)
|
||||
@rm -f rufus$(EXEEXT)
|
||||
$(AM_V_CCLD)$(rufus_LINK) $(rufus_OBJECTS) $(rufus_LDADD) $(LIBS)
|
||||
rufus_fd$(EXEEXT): $(rufus_fd_OBJECTS) $(rufus_fd_DEPENDENCIES)
|
||||
@rm -f rufus_fd$(EXEEXT)
|
||||
$(AM_V_CCLD)$(rufus_fd_LINK) $(rufus_fd_OBJECTS) $(rufus_fd_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
@ -359,118 +340,6 @@ rufus-rufus.obj: rufus.c
|
|||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_CFLAGS) $(CFLAGS) -c -o rufus-rufus.obj `if test -f 'rufus.c'; then $(CYGPATH_W) 'rufus.c'; else $(CYGPATH_W) '$(srcdir)/rufus.c'; fi`
|
||||
|
||||
rufus_fd-fat12.o: fat12.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-fat12.o `test -f 'fat12.c' || echo '$(srcdir)/'`fat12.c
|
||||
|
||||
rufus_fd-fat12.obj: fat12.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-fat12.obj `if test -f 'fat12.c'; then $(CYGPATH_W) 'fat12.c'; else $(CYGPATH_W) '$(srcdir)/fat12.c'; fi`
|
||||
|
||||
rufus_fd-fat16.o: fat16.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-fat16.o `test -f 'fat16.c' || echo '$(srcdir)/'`fat16.c
|
||||
|
||||
rufus_fd-fat16.obj: fat16.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-fat16.obj `if test -f 'fat16.c'; then $(CYGPATH_W) 'fat16.c'; else $(CYGPATH_W) '$(srcdir)/fat16.c'; fi`
|
||||
|
||||
rufus_fd-fat32.o: fat32.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-fat32.o `test -f 'fat32.c' || echo '$(srcdir)/'`fat32.c
|
||||
|
||||
rufus_fd-fat32.obj: fat32.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-fat32.obj `if test -f 'fat32.c'; then $(CYGPATH_W) 'fat32.c'; else $(CYGPATH_W) '$(srcdir)/fat32.c'; fi`
|
||||
|
||||
rufus_fd-partition_info.o: partition_info.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-partition_info.o `test -f 'partition_info.c' || echo '$(srcdir)/'`partition_info.c
|
||||
|
||||
rufus_fd-partition_info.obj: partition_info.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-partition_info.obj `if test -f 'partition_info.c'; then $(CYGPATH_W) 'partition_info.c'; else $(CYGPATH_W) '$(srcdir)/partition_info.c'; fi`
|
||||
|
||||
rufus_fd-br.o: br.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-br.o `test -f 'br.c' || echo '$(srcdir)/'`br.c
|
||||
|
||||
rufus_fd-br.obj: br.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-br.obj `if test -f 'br.c'; then $(CYGPATH_W) 'br.c'; else $(CYGPATH_W) '$(srcdir)/br.c'; fi`
|
||||
|
||||
rufus_fd-file.o: file.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-file.o `test -f 'file.c' || echo '$(srcdir)/'`file.c
|
||||
|
||||
rufus_fd-file.obj: file.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-file.obj `if test -f 'file.c'; then $(CYGPATH_W) 'file.c'; else $(CYGPATH_W) '$(srcdir)/file.c'; fi`
|
||||
|
||||
rufus_fd-drive.o: drive.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-drive.o `test -f 'drive.c' || echo '$(srcdir)/'`drive.c
|
||||
|
||||
rufus_fd-drive.obj: drive.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-drive.obj `if test -f 'drive.c'; then $(CYGPATH_W) 'drive.c'; else $(CYGPATH_W) '$(srcdir)/drive.c'; fi`
|
||||
|
||||
rufus_fd-dos.o: dos.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-dos.o `test -f 'dos.c' || echo '$(srcdir)/'`dos.c
|
||||
|
||||
rufus_fd-dos.obj: dos.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-dos.obj `if test -f 'dos.c'; then $(CYGPATH_W) 'dos.c'; else $(CYGPATH_W) '$(srcdir)/dos.c'; fi`
|
||||
|
||||
rufus_fd-dos_locale.o: dos_locale.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-dos_locale.o `test -f 'dos_locale.c' || echo '$(srcdir)/'`dos_locale.c
|
||||
|
||||
rufus_fd-dos_locale.obj: dos_locale.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-dos_locale.obj `if test -f 'dos_locale.c'; then $(CYGPATH_W) 'dos_locale.c'; else $(CYGPATH_W) '$(srcdir)/dos_locale.c'; fi`
|
||||
|
||||
rufus_fd-badblocks.o: badblocks.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-badblocks.o `test -f 'badblocks.c' || echo '$(srcdir)/'`badblocks.c
|
||||
|
||||
rufus_fd-badblocks.obj: badblocks.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-badblocks.obj `if test -f 'badblocks.c'; then $(CYGPATH_W) 'badblocks.c'; else $(CYGPATH_W) '$(srcdir)/badblocks.c'; fi`
|
||||
|
||||
rufus_fd-format.o: format.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-format.o `test -f 'format.c' || echo '$(srcdir)/'`format.c
|
||||
|
||||
rufus_fd-format.obj: format.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-format.obj `if test -f 'format.c'; then $(CYGPATH_W) 'format.c'; else $(CYGPATH_W) '$(srcdir)/format.c'; fi`
|
||||
|
||||
rufus_fd-stdio.o: stdio.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-stdio.o `test -f 'stdio.c' || echo '$(srcdir)/'`stdio.c
|
||||
|
||||
rufus_fd-stdio.obj: stdio.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-stdio.obj `if test -f 'stdio.c'; then $(CYGPATH_W) 'stdio.c'; else $(CYGPATH_W) '$(srcdir)/stdio.c'; fi`
|
||||
|
||||
rufus_fd-stdlg.o: stdlg.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-stdlg.o `test -f 'stdlg.c' || echo '$(srcdir)/'`stdlg.c
|
||||
|
||||
rufus_fd-stdlg.obj: stdlg.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-stdlg.obj `if test -f 'stdlg.c'; then $(CYGPATH_W) 'stdlg.c'; else $(CYGPATH_W) '$(srcdir)/stdlg.c'; fi`
|
||||
|
||||
rufus_fd-rufus.o: rufus.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-rufus.o `test -f 'rufus.c' || echo '$(srcdir)/'`rufus.c
|
||||
|
||||
rufus_fd-rufus.obj: rufus.c
|
||||
$(AM_V_CC) @AM_BACKSLASH@
|
||||
$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rufus_fd_CFLAGS) $(CFLAGS) -c -o rufus_fd-rufus.obj `if test -f 'rufus.c'; then $(CYGPATH_W) 'rufus.c'; else $(CYGPATH_W) '$(srcdir)/rufus.c'; fi`
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
|
@ -633,12 +502,8 @@ uninstall-am:
|
|||
ps ps-am tags uninstall uninstall-am
|
||||
|
||||
|
||||
# NB: There's a good reason we don't do something more elegant than copy/paste for _fd
|
||||
rufus_rc.o: rufus.rc
|
||||
$(pkg_v_rc)$(WINDRES) -i $< -o $@
|
||||
|
||||
rufus_fd_rc.o: rufus.rc
|
||||
$(pkg_v_rc)$(WINDRES) -DWITH_FREEDOS -i $< -o $@
|
||||
%_rc.o: %.rc
|
||||
$(pkg_v_rc)$(WINDRES) $(AM_RCFLAGS) -i $< -o $@
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
|
|
37
src/rufus.rc
37
src/rufus.rc
|
@ -30,7 +30,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL
|
|||
IDD_DIALOG DIALOGEX 12, 12, 206, 278
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
EXSTYLE WS_EX_APPWINDOW
|
||||
CAPTION "Rufus v1.0.6.109"
|
||||
CAPTION "Rufus v1.0.7.110"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "Start",IDC_START,94,236,50,14
|
||||
|
@ -65,7 +65,7 @@ BEGIN
|
|||
DEFPUSHBUTTON "OK",IDOK,231,175,50,14,WS_GROUP
|
||||
CONTROL "<a href=""http://rufus.akeo.ie"">http://rufus.akeo.ie</a>",IDC_ABOUT_RUFUS_URL,
|
||||
"SysLink",WS_TABSTOP,46,47,114,9
|
||||
LTEXT "Version 1.0.6 (Build 109)",IDC_STATIC,46,19,78,8
|
||||
LTEXT "Version 1.0.7 (Build 110)",IDC_STATIC,46,19,78,8
|
||||
PUSHBUTTON "License...",IDC_ABOUT_LICENSE,46,175,50,14,WS_GROUP
|
||||
EDITTEXT IDC_ABOUT_COPYRIGHTS,46,107,235,63,ES_MULTILINE | ES_READONLY | WS_VSCROLL
|
||||
LTEXT "Report bugs or request enhancements at:",IDC_STATIC,46,66,187,8
|
||||
|
@ -123,6 +123,31 @@ BEGIN
|
|||
"#if defined(WITH_FREEDOS)\r\n"
|
||||
"IDR_FD_COMMAND_COM RCDATA ""../freedos/COMMAND.COM""\r\n"
|
||||
"IDR_FD_KERNEL_SYS RCDATA ""../freedos/KERNEL.SYS""\r\n"
|
||||
"IDR_FD_DISPLAY_EXE RCDATA ""../freedos/DISPLAY.EXE""\r\n"
|
||||
"IDR_FD_KEYB_EXE RCDATA ""../freedos/KEYB.EXE""\r\n"
|
||||
"IDR_FD_MODE_COM RCDATA ""../freedos/MODE.COM""\r\n"
|
||||
"IDR_FD_KB1_SYS RCDATA ""../freedos/KEYBOARD.SYS""\r\n"
|
||||
"IDR_FD_KB2_SYS RCDATA ""../freedos/KEYBRD2.SYS""\r\n"
|
||||
"IDR_FD_KB3_SYS RCDATA ""../freedos/KEYBRD3.SYS""\r\n"
|
||||
"IDR_FD_KB4_SYS RCDATA ""../freedos/KEYBRD4.SYS""\r\n"
|
||||
"IDR_FD_EGA1_CPX RCDATA ""../freedos/ega.cpx""\r\n"
|
||||
"IDR_FD_EGA2_CPX RCDATA ""../freedos/ega2.cpx""\r\n"
|
||||
"IDR_FD_EGA3_CPX RCDATA ""../freedos/ega3.cpx""\r\n"
|
||||
"IDR_FD_EGA4_CPX RCDATA ""../freedos/ega4.cpx""\r\n"
|
||||
"IDR_FD_EGA5_CPX RCDATA ""../freedos/ega5.cpx""\r\n"
|
||||
"IDR_FD_EGA6_CPX RCDATA ""../freedos/ega6.cpx""\r\n"
|
||||
"IDR_FD_EGA7_CPX RCDATA ""../freedos/ega7.cpx""\r\n"
|
||||
"IDR_FD_EGA8_CPX RCDATA ""../freedos/ega8.cpx""\r\n"
|
||||
"IDR_FD_EGA9_CPX RCDATA ""../freedos/ega9.cpx""\r\n"
|
||||
"IDR_FD_EGA10_CPX RCDATA ""../freedos/ega10.cpx""\r\n"
|
||||
"IDR_FD_EGA11_CPX RCDATA ""../freedos/ega11.cpx""\r\n"
|
||||
"IDR_FD_EGA12_CPX RCDATA ""../freedos/ega12.cpx""\r\n"
|
||||
"IDR_FD_EGA13_CPX RCDATA ""../freedos/ega13.cpx""\r\n"
|
||||
"IDR_FD_EGA14_CPX RCDATA ""../freedos/ega14.cpx""\r\n"
|
||||
"IDR_FD_EGA15_CPX RCDATA ""../freedos/ega15.cpx""\r\n"
|
||||
"IDR_FD_EGA16_CPX RCDATA ""../freedos/ega16.cpx""\r\n"
|
||||
"IDR_FD_EGA17_CPX RCDATA ""../freedos/ega17.cpx""\r\n"
|
||||
"IDR_FD_EGA18_CPX RCDATA ""../freedos/ega18.cpx""\r\n"
|
||||
"#endif\r\n"
|
||||
"\r\n"
|
||||
"// Must reference a manifest for visual styles and elevation\r\n"
|
||||
|
@ -170,8 +195,8 @@ END
|
|||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,6,109
|
||||
PRODUCTVERSION 1,0,6,109
|
||||
FILEVERSION 1,0,7,110
|
||||
PRODUCTVERSION 1,0,7,110
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
|
@ -188,13 +213,13 @@ BEGIN
|
|||
BEGIN
|
||||
VALUE "CompanyName", "akeo.ie"
|
||||
VALUE "FileDescription", "Rufus"
|
||||
VALUE "FileVersion", "1.0.6.109"
|
||||
VALUE "FileVersion", "1.0.7.110"
|
||||
VALUE "InternalName", "Rufus"
|
||||
VALUE "LegalCopyright", "© 2011 Pete Batard (GPL v3)"
|
||||
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
|
||||
VALUE "OriginalFilename", "rufus.exe"
|
||||
VALUE "ProductName", "Rufus"
|
||||
VALUE "ProductVersion", "1.0.6.109"
|
||||
VALUE "ProductVersion", "1.0.7.110"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
|
Loading…
Reference in a new issue