Assembly Programming Journal Issue 06
@eZine
Published in
Assembly Programming Journal
· 5 years ago
... gcc -o file file.o combination, or by using a Makefile: #----------------------------------------------------------------------Makefile TARGET =beep #target is the variable storing the base filename ASM = nasm #ASM contains the name of the assembler ASMFILE = $(TARGET).asm #ASMFILE contains the full name of the source file OBJFILE = $(TARGET).o #OBJFILE contains the full name of the object file LINKER = gcc #LINKER contains the full name of the linker LIBS = #LIBS contains any library flags LIBDIR = #LIBDIR contains any library location flags all: #the 'all:' section applies to all targets $(ASM) -o $(OBJFILE) -f elf $(ASMFILE) $(LINKER) -o $(TARGE ...