first commit
This commit is contained in:
19
makefile
Normal file
19
makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
CFLAGS= -g -O0 -std=c99 -Wall -Wextra
|
||||
|
||||
SRCS=$(wildcard *.c)
|
||||
OBJS=$(SRCS:.c=.o)
|
||||
|
||||
com: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
make -C ./vm
|
||||
cp ./vm/run .
|
||||
|
||||
$(OBJS): yo.h isa.h fn.h dat.h
|
||||
|
||||
tests:
|
||||
./com fib.yo
|
||||
./run obj
|
||||
|
||||
clean:
|
||||
rm -f com $(OBJS) obj exported run
|
||||
make clean -C ./vm
|
||||
Reference in New Issue
Block a user