mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:33:16 +00:00
Winefile Makefile for pure MinGW
svn path=/trunk/; revision=17370
This commit is contained in:
parent
5729cb615a
commit
e2f582841b
2 changed files with 59 additions and 3 deletions
56
reactos/subsys/system/winefile/Makefile.MinGW
Normal file
56
reactos/subsys/system/winefile/Makefile.MinGW
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
#
|
||||||
|
# Winefile Makefile for MinGW
|
||||||
|
#
|
||||||
|
|
||||||
|
CC = gcc
|
||||||
|
LD = gcc
|
||||||
|
|
||||||
|
CFLAGS = -DUNICODE -D_WIN32_IE=0x0501 -D_WIN32_WINNT=0x0501
|
||||||
|
RCFLAGS = -D__WINDRES__
|
||||||
|
LFLAGS = -Wl,--subsystem,windows
|
||||||
|
|
||||||
|
ifdef DEBUG
|
||||||
|
CFLAGS += -D_DEBUG -g
|
||||||
|
RCFLAGS += -D_DEBUG
|
||||||
|
LFLAGS += -g
|
||||||
|
else
|
||||||
|
CFLAGS += -DNDEBUG -Os
|
||||||
|
RCFLAGS += -DNDEBUG
|
||||||
|
LFLAGS += -s
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef UNICODE
|
||||||
|
UNICODE = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
CFLAGS += -DUNICODE
|
||||||
|
# LFLAGS+= -Wl,--entry,_wWinMain@16
|
||||||
|
RCFLAGS += -DUNICODE
|
||||||
|
endif
|
||||||
|
|
||||||
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
|
EXEC_SUFFIX = .exe
|
||||||
|
RES_SUFFIX = .coff
|
||||||
|
|
||||||
|
PROGRAM = winefile
|
||||||
|
|
||||||
|
OBJECTS = winefile.o
|
||||||
|
|
||||||
|
LIBS = uuid user32 gdi32 advapi32 comctl32 shell32 comdlg32 ole32 version mpr
|
||||||
|
|
||||||
|
DELAYIMPORTS =
|
||||||
|
|
||||||
|
TARGET = $(PROGRAM)$(EXEC_SUFFIX)
|
||||||
|
|
||||||
|
all: $(TARGET)
|
||||||
|
|
||||||
|
$(TARGET): $(OBJECTS) $(PROGRAM)$(RES_SUFFIX)
|
||||||
|
$(LD) $(LFLAGS) -o $@ $^ $(addprefix -l,$(LIBS)) $(addprefix -l,$(DELAYIMPORTS))
|
||||||
|
|
||||||
|
$(PROGRAM)$(RES_SUFFIX): $(PROGRAM).rc *.bmp *.ico
|
||||||
|
windres $(RCFLAGS) -o $@ $(PROGRAM).rc
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(TARGET) $(OBJECTS) $(PROGRAM)$(RES_SUFFIX)
|
|
@ -41,7 +41,7 @@ CFG=make_winefile - Win32 Debug
|
||||||
# PROP Use_Debug_Libraries 0
|
# PROP Use_Debug_Libraries 0
|
||||||
# PROP Output_Dir "Release"
|
# PROP Output_Dir "Release"
|
||||||
# PROP Intermediate_Dir "Release"
|
# PROP Intermediate_Dir "Release"
|
||||||
# PROP Cmd_Line "msdevfilt -gcc -pipe "perl d:\tools\gSTLFilt.pl" make"
|
# PROP Cmd_Line "msdevfilt -gcc -pipe "perl d:\tools\gSTLFilt.pl" make -f Makefile.MinGW"
|
||||||
# PROP Rebuild_Opt "clean all"
|
# PROP Rebuild_Opt "clean all"
|
||||||
# PROP Target_File "winefile.exe"
|
# PROP Target_File "winefile.exe"
|
||||||
# PROP Bsc_Name ""
|
# PROP Bsc_Name ""
|
||||||
|
@ -62,7 +62,7 @@ CFG=make_winefile - Win32 Debug
|
||||||
# PROP Use_Debug_Libraries 1
|
# PROP Use_Debug_Libraries 1
|
||||||
# PROP Output_Dir "Debug"
|
# PROP Output_Dir "Debug"
|
||||||
# PROP Intermediate_Dir "Debug"
|
# PROP Intermediate_Dir "Debug"
|
||||||
# PROP Cmd_Line "msdevfilt -gcc -pipe "perl d:\tools\gSTLFilt.pl" make DEBUG=1"
|
# PROP Cmd_Line "msdevfilt -gcc -pipe "perl d:\tools\gSTLFilt.pl" make -f Makefile.MinGW DEBUG=1"
|
||||||
# PROP Rebuild_Opt "clean all"
|
# PROP Rebuild_Opt "clean all"
|
||||||
# PROP Target_File "winefile.exe"
|
# PROP Target_File "winefile.exe"
|
||||||
# PROP Bsc_Name ""
|
# PROP Bsc_Name ""
|
||||||
|
@ -83,7 +83,7 @@ CFG=make_winefile - Win32 Debug
|
||||||
|
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\makefile
|
SOURCE=.\Makefile.MinGW
|
||||||
# End Source File
|
# End Source File
|
||||||
# End Target
|
# End Target
|
||||||
# End Project
|
# End Project
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue