logoISU  

CS 456 - Systems Programming

Spring 2024

Displaying ./code/asm2/Makefile

ASM = nasm
LNK = ld
ASFLAGS = -f elf
LDFLAGS = -m elf_i386

all: hello-inc hello

hello-inc: helloworld-inc.o
	$(LNK) $(LDFLAGS) helloworld-inc.o -o $@

hello: helloworld.o
	$(LNK) $(LDFLAGS) helloworld.o  -o $@	

helloworld-inc.o: helloworld-inc.asm functions.asm
	$(ASM) $(ASFLAGS) helloworld-inc.asm

helloworld.o: helloworld.asm 
	$(ASM) $(ASFLAGS) helloworld.asm

clean:
	rm -f *.o helloworld hello-inc