1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

Compile multiple source files when possible.

This commit is contained in:
Geoff Voelker 1998-11-04 01:28:57 +00:00
parent 51099b4521
commit c654fd9e7d
3 changed files with 18 additions and 3 deletions

View File

@ -217,8 +217,13 @@ $(DOC): $(BLD)\make-docfile.exe
{$(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

View File

@ -29,8 +29,13 @@ TRES = $(BLD)\emacs.res
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

View File

@ -241,8 +241,13 @@ $(TLASTLIB): $(BLD)\lastfile.obj
#
# 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.