Initialer Commit

This commit is contained in:
lux
2017-08-02 20:10:36 +02:00
commit 168a8b9bcf
7 changed files with 179 additions and 0 deletions

25
makefile Normal file
View File

@ -0,0 +1,25 @@
#-------------Makro-Part------------------
CC = gcc
CFLAGS = -Wall -std=c99
LDFLAGs =
DEBUG =
VPATH = src src/debug
#--------------Linker-Part-----------------
toy_cpu : main.o toy.o debug.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 $<
debug.o : debug.c debug.h
$(CC) $(DEBUG) $(CFLAGS) -o $@ -c $<
clean :
rm -f *.o