change NASM file extensions from .s to .nasm

This commit is contained in:
Josh Coalson 2001-06-13 18:04:47 +00:00
parent 9a7b5e2d80
commit 2255848763
4 changed files with 17 additions and 17 deletions

View File

@ -46,7 +46,7 @@ $(PROGRAM) : $(OBJS)
%.i : %.c
$(CC) $(CFLAGS) -E $< -o $@
%.o : %.s
%.o : %.nasm
$(NASM) -f elf -d ELF -i i386/ $< -o $@
.PHONY : clean

View File

@ -48,7 +48,7 @@ $(DYNAMIC_LIB) : $(OBJS)
%.i : %.c
$(CC) $(CFLAGS) -E $< -o $@
%.o : %.s
%.o : %.nasm
$(NASM) -f elf -d ELF -i i386/ $< -o $@
.PHONY : clean

View File

@ -45,23 +45,23 @@ C_FILES= \
stream_encoder_framing.c
NASM_FILES= \
i386/cpu_asm.s \
i386/fixed_asm.s \
i386/lpc_asm.s
i386/cpu_asm.nasm \
i386/fixed_asm.nasm \
i386/lpc_asm.nasm
OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.s=.obj)
OBJS= $(C_FILES:.c=.obj) $(NASM_FILES:.nasm=.obj)
all: libFLAC.lib
libFLAC.lib: $(OBJS)
link.exe -lib -out:../../obj/lib/$*.lib $(OBJS)
i386/cpu_asm.obj: i386/cpu_asm.s
$(NASM) -f win32 -d WIN32 -i i386/ i386/cpu_asm.s -o i386/cpu_asm.obj
i386/fixed_asm.obj: i386/fixed_asm.s
$(NASM) -f win32 -d WIN32 -i i386/ i386/fixed_asm.s -o i386/fixed_asm.obj
i386/lpc_asm.obj: i386/lpc_asm.s
$(NASM) -f win32 -d WIN32 -i i386/ i386/lpc_asm.s -o i386/lpc_asm.obj
i386/cpu_asm.obj: i386/cpu_asm.nasm
$(NASM) -f win32 -d WIN32 -i i386/ i386/cpu_asm.nasm -o i386/cpu_asm.obj
i386/fixed_asm.obj: i386/fixed_asm.nasm
$(NASM) -f win32 -d WIN32 -i i386/ i386/fixed_asm.nasm -o i386/fixed_asm.obj
i386/lpc_asm.obj: i386/lpc_asm.nasm
$(NASM) -f win32 -d WIN32 -i i386/ i386/lpc_asm.nasm -o i386/lpc_asm.obj
clean:
-del *.obj i386\*.obj *.pch

View File

@ -17,12 +17,12 @@
# Boston, MA 02111-1307, USA.
# nasm build rule:
SUFFIXES = .s .lo
.s.lo:
SUFFIXES = .nasm .lo
.nasm.lo:
$(NASM) -f elf -d ELF $< -o $@
noinst_LTLIBRARIES = libFLAC-asm.la
libFLAC_asm_la_SOURCES = \
cpu_asm.s \
fixed_asm.s \
lpc_asm.s
cpu_asm.nasm \
fixed_asm.nasm \
lpc_asm.nasm