btui/Makefile

36 lines
704 B
Makefile
Raw Normal View History

2020-04-18 15:09:33 -07:00
PREFIX=
CC ?= gcc
O ?= -O2
CFLAGS=-std=c99 -D_XOPEN_SOURCE=500 -D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L
CWARN=-Wall -Wpedantic -Wextra -Wno-unknown-pragmas -Wno-missing-field-initializers\
-Wno-padded -Wsign-conversion -Wno-missing-noreturn -Wno-cast-qual -Wtype-limits
#CFLAGS += -fsanitize=address -fno-omit-frame-pointer
G=
all: checksyntax
checksyntax: btui.h
$(CC) $(CFLAGS) $(CWARN) $(G) $(O) -fsyntax-only $<
2020-04-18 15:09:33 -07:00
clean:
@cd lua; make clean
@cd C; make clean
@cd python; make clean
2020-04-18 15:09:33 -07:00
%: %.c btui.h
$(CC) $(CFLAGS) $(CWARN) $(G) $(O) $< -o $@
c:
@cd C; make
testc:
@cd C; make test
lua:
@cd lua; make
testlua:
@cd lua; make test
.PHONY: all, checksyntax, clean, c, testc, lua, testlua