SIMH_CMD = pdp11
SIMH_CFG = simh.conf
-# List of all source files in PDP-11 library.
-PDPLIB_SRC != ls pdp11/*.c
-
####################################################################################################
# Targets
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