emulator/makefile
lux 21b0c13056 Improve user interface
- prints an OP-Code into a humen-readable word.
    - Show the content of the current pointer to a memory address.
    - Clear shell colors to be compatible with M$-Windows.
    - Delete invalid path in make-file.
2017-10-03 03:03:45 +02:00

25 lines
515 B
Makefile

#-------------Makro-Part------------------
CC = gcc
CFLAGS = -Wall -pedantic -std=c99
LDFLAGs =
DEBUG = -DNDEBUG
VPATH = src
#--------------Linker-Part-----------------
toy_cpu : main.o toy.o helper.o
echo $@ is now linked
$(CC) $(LDFLAGS) -o $@ $^
#--------------Compiler-Part---------------
main.o : main.c
$(CC) $(DEBUG) $(CFLAGS) -o $@ -c $<
toy.o : toy.c toy.h
$(CC) $(DEBUG) $(CFLAGS) -o $@ -c $<
helper.o : helper.c helper.h
$(CC) $(DEBUG) $(CFLAGS) -o $@ -c $<
clean :
rm -f *.o coredump*.toy