Init repo
This commit is contained in:
19
Makefile
Normal file
19
Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
CC = clang
|
||||
CXX = clang++
|
||||
CFLAGS = -Wall -Wextra -Werror -pedantic -g
|
||||
|
||||
CCLOX_SRC = cclox_src/*.cc
|
||||
CCLOX_OUT = cclox
|
||||
|
||||
CLOX_SRC = clox_src/*.c
|
||||
CLOX_OUT = clox
|
||||
|
||||
.PHONY: all cclox clox
|
||||
|
||||
all: cclox clox
|
||||
|
||||
cclox: ${CCLOX_SRC}
|
||||
${CXX} ${CFLAGS} ${CCLOX_SRC} -o ${CCLOX_OUT}
|
||||
|
||||
clox: ${CLOX_SRC}
|
||||
${CC} ${CFLAGS} ${CLOX_SRC} -o ${CLOX_OUT}
|
||||
Reference in New Issue
Block a user