almost working now
This commit is contained in:
23
Makefile
23
Makefile
@@ -1,16 +1,27 @@
|
||||
|
||||
CFLAGS := -std=c23 -g
|
||||
BUILD ?= debug
|
||||
CC := clang
|
||||
|
||||
CFLAGS.gcc.release := -O3
|
||||
CFLAGS.gcc.debug := -ggdb -O0 -fsanitize=address
|
||||
CFLAGS.gcc := -std=c23 -Wall -Wextra -Wconversion -Wno-unused-function
|
||||
|
||||
CFLAGS.clang.release := -O3
|
||||
CFLAGS.clang.debug := -ggdb -O0
|
||||
CFLAGS.clang := -std=c23 -Wall -Wextra -Wconversion -Wno-unused-function -Wimplicit-int-conversion
|
||||
|
||||
CFLAGS := $(CFLAGS.$(CC)) $(CFLAGS.$(CC).$(BUILD))
|
||||
|
||||
all: tests
|
||||
|
||||
codegen: codegen.c
|
||||
$(CC) -o $@ $(CFLAGS) -DCODEGEN $^
|
||||
$(CC) -o $@ $(CFLAGS) $^
|
||||
|
||||
mbb_rook.h: codegen
|
||||
#./codegen
|
||||
./codegen
|
||||
|
||||
mbb_bishop.h: codegen
|
||||
#./codegen
|
||||
./codegen
|
||||
|
||||
tests: tests.c | mbb_rook.h mbb_bishop.h base.h
|
||||
$(CC) -o $@ $(CFLAGS) $^
|
||||
tests: tests.c mbb_rook.h mbb_bishop.h base.h
|
||||
$(CC) -o $@ $(CFLAGS) tests.c
|
||||
|
||||
Reference in New Issue
Block a user