allow 'make CC=gcc'

This commit is contained in:
dzaima 2021-07-22 03:32:27 +03:00
parent 4b8210d1bd
commit 2cab929fb5

View File

@ -1,8 +1,10 @@
SHELL=/usr/bin/env bash
CC=clang
ifeq ($(CC),gcc)
CCFLAGS=-Wno-parentheses
else
CCFLAGS=-Wno-microsoft-anon-tag
# CC=gcc
# CCFLAGS=-Wno-parentheses
endif
CMD=$(CC) -std=gnu11 -Wall -Wno-unused-function -fms-extensions ${CCFLAGS} $(FLAGS) -fPIE -MMD -MP -MF