{$(BLD)}.obj{$(BLD)}.exe:
$(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
+!IF ($(_NMAKE_VER) < $(_NMAKE_VER_5))
.c{$(BLD)}.obj:
- $(CC) $(CFLAGS) -Fo$@ $<
+ $(CC) $(CFLAGS) -Fo$(OBJDIR)\i386\ $<
+!ELSE
+.c{$(BLD)}.obj::
+ $(CC) $(CFLAGS) -Fo$(OBJDIR)\i386\ $<
+!ENDIF
#
# Build the executables
TRES = $(BLD)\emacs.rbj
!endif
+!IF ($(_NMAKE_VER) < $(_NMAKE_VER_5))
.c{$(BLD)}.obj:
- $(CC) $(CFLAGS) -Fo$@ $<
+ $(CC) $(CFLAGS) -Fo$(OBJDIR)\i386\ $<
+!ELSE
+.c{$(BLD)}.obj::
+ $(CC) $(CFLAGS) -Fo$(OBJDIR)\i386\ $<
+!ENDIF
addpm: $(BLD) $(BLD)\addpm.exe
$(BLD)\addpm.obj: addpm.c
#
# Object files.
#
+!IF ($(_NMAKE_VER) < $(_NMAKE_VER_5))
.c{$(BLD)}.obj:
- $(CC) $(CFLAGS) -Fo$@ $<
+ $(CC) $(CFLAGS) -Fo$(OBJDIR)\i386\ $<
+!ELSE
+.c{$(BLD)}.obj::
+ $(CC) $(CFLAGS) -Fo$(OBJDIR)\i386\ $<
+!ENDIF
#
# Assuming INSTALL_DIR is defined, build and install emacs in it.