move includes to sourcefiles

- fix initialise_ram() function
- add function-doc comments
This commit is contained in:
Michael
2017-09-20 15:59:31 +02:00
committed by lux
parent 669072be49
commit b6a88963e5
6 changed files with 106 additions and 56 deletions

View File

@ -7,7 +7,7 @@ DEBUG = -DNDEBUG
VPATH = src src/debug
#--------------Linker-Part-----------------
toy_cpu : main.o toy.o debug.o
toy_cpu : main.o toy.o helper.o
echo $@ is now linked
$(CC) $(LDFLAGS) -o $@ $^
#--------------Compiler-Part---------------
@ -17,7 +17,7 @@ main.o : main.c
toy.o : toy.c toy.h
$(CC) $(DEBUG) $(CFLAGS) -o $@ -c $<
debug.o : debug.c debug.h
helper.o : helper.c helper.h
$(CC) $(DEBUG) $(CFLAGS) -o $@ -c $<
clean :