1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00
Files
rzzzwilson.pymlac/vimlac/Makefile
2016-10-21 18:48:21 +07:00

30 lines
917 B
Makefile
Executable File

DEVFILES = cpu.o dcpu.o ptrptp.o memory.o kb.o ttyin.o ttyout.o trace.o error.o log.o plist.o bootstrap.o
HFILES = cpu.h dcpu.h ptrptp.h memory.h kb.h ttyin.h ttyout.h trace.h error.h log.h plist.h bootstrap.h
OFILES = vimlac.o $(DEVFILES)
CFLAGS=-O2 -Wall -ansi -pedantic -std=c99 -g
test: test_cpu
rm -f vimlac.log trace.out
./test_cpu CPU.test
test_cpu: test_cpu.c $(DEVFILES) Makefile
gcc -o test_cpu ${CFLAGS} $(DEVFILES) test_cpu.c
vimlac: ${OFILES} Makefile
gcc -o vimlac ${CFLAGS} ${OFILES}
test_ptr: test_ptr.c ptrptp.c error.c Makefile
gcc -o test_ptr ${CFLAGS} error.c ptrptp.c test_ptr.c
./test_ptr
test_plist: test_plist.c $(DEVFILES) Makefile
gcc -o test_plist ${CFLAGS} -lcunit $(DEVFILES) test_plist.c
./test_plist
test_memory: test_memory.c memory.c memory.h Makefile
gcc -o test_memory ${CFLAGS} memory.c test_memory.c
clean:
rm -f *.pyc *.o vimlac test_ptr test_memory *~ _#*#_.*