X-Git-Url: http://git.subgeniuskitty.com/pdp11-modern-c/.git/blobdiff_plain/846f4d60e4994a39decd6c27463411f53965fc60..202004d54803c861f7fbaa9169eaad750c63f7cf:/Makefile diff --git a/Makefile b/Makefile index 51c8869..f4a8632 100644 --- a/Makefile +++ b/Makefile @@ -33,9 +33,6 @@ PDP_LOAD = bin2pdp SIMH_CMD = pdp11 SIMH_CFG = simh.conf -# List of all source files in PDP-11 library. -PDPLIB_SRC != ls pdp11/*.c - #################################################################################################### # Targets @@ -44,14 +41,19 @@ all: aout aout: $(AS) $(AS_FLAGS) -o init.o init.s - $(CC) $(CC_FLAGS) -o pdp11.o $(PDPLIB_SRC) + $(AS) $(AS_FLAGS) -o pdp11_inthandler.o pdp11/interrupt_handler.s + $(CC) $(CC_FLAGS) -o pdp11_interrupt.o pdp11/pdp11_interrupt.c + $(CC) $(CC_FLAGS) -o pdp11_slu.o pdp11/pdp11_slu.c + $(CC) $(CC_FLAGS) -o pdp11_mmu.o pdp11/pdp11_mmu.c + $(CC) $(CC_FLAGS) -o pdp11.o pdp11/pdp11.c ############################################## # Insert your program's build commands here. # $(CC) $(CC_FLAGS) -o hello.o hello.c ############################################## - $(LD) $(LD_FLAGS) init.o pdp11.o hello.o -o program.out + $(LD) $(LD_FLAGS) init.o pdp11_inthandler.o pdp11_interrupt.o pdp11_slu.o pdp11_mmu.o pdp11.o \ + hello.o -o program.out clean: @rm -rf *.o *.out *.pdp11 *.bin *.core