add nasm targets

This commit is contained in:
Josh Coalson 2001-05-03 02:24:39 +00:00
parent cc78fb5710
commit 955a767d57
2 changed files with 14 additions and 6 deletions

View File

@ -3,6 +3,7 @@
#
CC = gcc
NASM = nasm
# LINKAGE can be forced to -static or -dynamic from invocation if desired, but it defaults to -static
LINKAGE = -static
LINK = gcc $(LINKAGE)
@ -28,6 +29,9 @@ $(PROGRAM) : $(OBJS)
%.i : %.c
$(CC) $(CFLAGS) -E $< -o $@
%.o : %.nasm
$(NASM) -f elf -d ELF -i i386/ $< -o $@
.PHONY : clean
clean :
-rm -f $(OBJS) $(PROGRAM)

View File

@ -3,6 +3,7 @@
#
CC = gcc
NASM = nasm
LINK = ar cru
LINKD = ld -G
LIBPATH = ../../obj/lib
@ -30,6 +31,9 @@ $(DYNAMIC_LIB) : $(OBJS)
%.i : %.c
$(CC) $(CFLAGS) -E $< -o $@
%.o : %.nasm
$(NASM) -f elf -d ELF -i i386/ $< -o $@
.PHONY : clean
clean :
-rm -f $(OBJS) $(STATIC_LIB) $(DYNAMIC_LIB)