added TARGETDEF to use a def file if one exists
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
441b8072ee
commit
77fc3492f9
@ -49,17 +49,19 @@ DEBUG_FLAGS =
|
||||
|
||||
CPPFLAGS=$(CPPFLAGS) $(DEBUG_FLAGS) $(OPT)
|
||||
|
||||
TARGETDEF =
|
||||
!if "$(wxUSE_GUI)" == "0"
|
||||
TARGETRES =
|
||||
STARTUP = c0x32.obj
|
||||
!else
|
||||
if exist $(TARGET).def TARGETDEF = $(TARGET).def
|
||||
TARGETRES = $(TARGET).res
|
||||
STARTUP = c0w32.obj
|
||||
!endif
|
||||
|
||||
all: $(TARGET).exe $(EXTRATARGETS)
|
||||
|
||||
$(TARGET).exe: $(OBJECTS) $(TARGETRES)
|
||||
$(TARGET).exe: $(OBJECTS) $(TARGETDEF) $(TARGETRES)
|
||||
$(LINK) $(LINKFLAGS) @&&!
|
||||
$(STARTUP) $(OBJECTS)
|
||||
$(TARGET)
|
||||
|
Loading…
Reference in New Issue
Block a user