mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[mingw] switched to autotools for Makefile generation
* allows better integration with Clang * use ./autogen.sh to generate compilation scripts * old Makefile renamed to mf so that make -f mf can still be invoked * also fixed one Clang warning
This commit is contained in:
parent
2390b305c8
commit
b6c6e37927
6 changed files with 102 additions and 8 deletions
16
Makefile.am
Normal file
16
Makefile.am
Normal file
|
@ -0,0 +1,16 @@
|
|||
INCLUDES = -I$(top_srcdir)
|
||||
|
||||
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 $@";
|
||||
|
||||
rufus_rc.o: rufus.rc
|
||||
$(pkg_v_rc)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(ARCH_RCFLAGS) -i $< -o $@
|
||||
|
||||
rufus_SOURCES = fat12.c fat16.c fat32.c br.c file.c drive.c msdos.c format.c stdio.c stdlg.c rufus.c
|
||||
rufus_CFLAGS = -I./inc $(ARCH_CFLAGS) $(AM_CFLAGS)
|
||||
# static ensures that the exe can be shared as a standalone, and still allow driver installation
|
||||
rufus_LDFLAGS = $(AM_LDFLAGS) -static
|
||||
rufus_LDADD = rufus_rc.o -lsetupapi -lole32 -lgdi32
|
Loading…
Add table
Add a link
Reference in a new issue