mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
f75a9fc7cb
* diskcopy.dll contains a resource ('BINFILE') that is a 1.4MB floppy image of a bootable MS-DOS disk (FAT12) * we can extract these files and use them for bootable USB
25 lines
618 B
Makefile
25 lines
618 B
Makefile
TARGETNAME=rufus
|
|
|
|
CC = gcc
|
|
RC = windres
|
|
STRIP = strip
|
|
CFLAGS = -std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -O2 -Wl,--subsystem,windows -DWINVER=0x501 -D_WIN32_IE=0x501
|
|
LIBS = -lsetupapi -lole32 -lgdi32
|
|
|
|
RUFUS_SRC = rufus.c stdlg.c msdos.c
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(TARGETNAME)
|
|
|
|
$(TARGETNAME): $(RUFUS_SRC) $(TARGETNAME)_rc.o
|
|
@echo "[CCLD] $@"
|
|
@$(CC) -o $@ $(CFLAGS) $^ $(TARGETNAME)_rc.o $(LIBS)
|
|
@$(STRIP) $(TARGETNAME).exe
|
|
|
|
$(TARGETNAME)_rc.o: $(TARGETNAME).rc
|
|
@echo "[RC] $@"
|
|
@$(RC) -i $< -o $@
|
|
|
|
clean:
|
|
rm -f *.exe *.o
|