Previous 15994 Revisions Next

r7836 Saturday 17th April, 2010 at 10:20:54 UTC by Firewave
Added workarounds for linking of Windows applications with Visual Studio. Also fixed a define in winui.mak
[src/mess/osd/winui]winui.mak
[src/mess/tools/imgtool/windows]wimgtool.mak

src/mess/tools/imgtool/windows/wimgtool.mak
r7835r7836
3838   $(MESS_TOOLS)/imgtool/windows/wimgtool.res   \
3939
4040
41#-------------------------------------------------
42# linker flags
43#-------------------------------------------------
4144
45ifdef MSVC_BUILD
46# workaround to allow linking with MSVC
47LDFLAGS_WIN = $(subst /ENTRY:wmainCRTStartup,,$(LDFLAGS))
48else
49LDFLAGS_WIN = $(LDFLAGS)
50endif
51
4252#-------------------------------------------------
4353# rules to build the wimgtool executable
4454#-------------------------------------------------
r7835r7836
4959
5060$(WIMGTOOL): $(WIMGTOOL_OBJS) $(LIBIMGTOOL) $(LIBUTIL) $(EXPAT) $(ZLIB) $(LIBOCORE_NOMAIN)
5161   @echo Linking $@...
52   $(LD) $(LDFLAGS) -mwindows $^ $(LIBS) -o $@
62   $(LD) $(LDFLAGS_WIN) -mwindows $^ $(LIBS) -o $@
src/mess/osd/winui/winui.mak
r7835r7836
105105#####################################################################
106106# Linker
107107
108ifndef MSVC
108ifndef MSVC_BUILD
109LDFLAGS_UI = $(LDFLAGS)
110else
111
109112LIBS += -lkernel32 \
110113        -lshell32 \
111114        -lcomctl32 \
112115        -lcomdlg32 \
113        -ladvapi32 \
116        -ladvapi32\
114117
118# workaround to allow linking with MSVC
119LDFLAGS_UI = $(subst /ENTRY:wmainCRTStartup,,$(LDFLAGS))
115120endif
116121
117122
r7835r7836
130135
131136$(MESSUIEXE): $(WINUIOBJS) $(VERSIONOBJ) $(DRVLIBS) $(LIBOSD) $(LIBEMU) $(LIBCPU) $(LIBDASM) $(LIBSOUND) $(LIBUTIL) $(EXPAT) $(ZLIB) $(SOFTFLOAT) $(LIBOCORE_NOMAIN) $(RESFILEUI)
132137   @echo Linking $@...
133   $(LD) $(LDFLAGS) -mwindows $^ $(LIBS) $(EXPAT) -o $@
138   $(LD) $(LDFLAGS_UI) -mwindows $^ $(LIBS) $(EXPAT) -o $@

Previous 15994 Revisions Next


© 1998-2018 The MESS Team