Initial commit
This commit is contained in:
22
Makefile
Normal file
22
Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
DEBUG_FLAGS=-Og -g -fsanitize=address,undefined
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-std=c11 -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE=200112L -Wall -Wextra $(DEBUG_FLAGS)
|
||||
LD=gcc
|
||||
LDFLAGS=$(DEBUG_FLAGS)
|
||||
|
||||
lambda: main.o parse.o term.o
|
||||
$(LD) $(LDFLAGS) -o $@ $^
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f lambda *.o
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
# Dependencies
|
||||
main.o: parse.h term.h
|
||||
parse.o: parse.h util.h
|
||||
term.o: term.h
|
||||
Reference in New Issue
Block a user