1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00
2015-11-03 19:54:12 +07:00

29 lines
827 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
OFILES = vimlac.o $(DEVFILES)
#CFLAGS=-fPIC -O2 -Wall -ansi -pedantic -std=c99 -g
CFLAGS=-O2 -Wall -ansi -pedantic -std=c99 -g
test_cpu: test_cpu.c $(DEVFILES) Makefile
gcc -o test_cpu ${CFLAGS} $(DEVFILES) test_cpu.c
test: test_cpu
rm -f vimlac.log
./test_cpu CPU.test
vimlac: ${OFILES} Makefile
gcc -o vimlac ${CFLAGS} ${OFILES}
test_ptr: test_ptr.c ptr.c ptr.h Makefile
gcc -o test_ptr ${CFLAGS} ptr.c test_ptr.c
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 *~ _#*#_.*