Imported slu/mmu/interrupt/register code from WIP memtester program into C template.
[pdp11-modern-c] / Makefile
index 51c8869..f4a8632 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,9 +33,6 @@ PDP_LOAD        = bin2pdp
 SIMH_CMD        = pdp11
 SIMH_CFG        = simh.conf
 
 SIMH_CMD        = pdp11
 SIMH_CFG        = simh.conf
 
-# List of all source files in PDP-11 library.
-PDPLIB_SRC      != ls pdp11/*.c
-
 
 ####################################################################################################
 # Targets
 
 ####################################################################################################
 # Targets
@@ -44,14 +41,19 @@ all: aout
 
 aout: 
        $(AS) $(AS_FLAGS) -o init.o init.s
 
 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
        ##############################################
 
 
        ##############################################
        # 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
 
 clean:
        @rm -rf *.o *.out *.pdp11 *.bin *.core