1234567891011121314151617181920212223242526 |
- CC=gcc
- CFLAGS+=-g -std=c99 -Wall -Werror -Wno-unused-but-set-variable -D_GNU_SOURCE -falign-functions=8
- SOURCES=read_word.c vm.c \
- allocator.c gc.c symboltable.c builtins.c ports.c\
- loader.c \
- interpreter.c glovars.c information.c \
- main.c
- OBJECTS=$(SOURCES:.c=.o)
- .PHONY: all
- all: vm
- .PHONY: clean
- clean:
- rm -f $(OBJECTS)
- rm -f vm
- global.o: builtins.c
- %.o: %.c
- $(CC) -c $(CFLAGS) $< -o $@
- vm: $(OBJECTS)
- $(CC) -o vm $(CFLAGS) $(OBJECTS)
|