# simple makefile INC=./inc CC=bcc LD=ld86 AS=nasm MED=mednafen #$(LD) -M src/*.o # -d delete headers # -s strip symbols all: $(LD) -T0x0 -D0xF000 src/*.o -d -s -o test.wsc # use -x to for -ffreestanding c-files: $(CC) -0 -c src/*.c -I$(INC) init: $(AS) -fas86 src/*.s -i $(INC) add: cp test.wsc tools/ cd tools && ./romheader run: $(MED) tools/test.wsc clean: rm -rf src/*.o test.wsc