Add explicit rule for compile to use CCFLAGS instead of CFLAGS
This commit is contained in:
parent
40ccd3d80d
commit
c29e30d25c
1 changed files with 5 additions and 2 deletions
7
Makefile
7
Makefile
|
@ -1,7 +1,7 @@
|
||||||
# Makefile for the open-source release of adventure 2.5
|
# Makefile for the open-source release of adventure 2.5
|
||||||
|
|
||||||
CC?=gcc
|
CC=clang
|
||||||
CCFLAGS=-std=c99
|
CCFLAGS=-O2 -std=c99 -Wall -Wextra -Wpedantic -fstack-protector -fstack-protector-all -pipe -mtune=native
|
||||||
LIBS=
|
LIBS=
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
|
@ -33,6 +33,9 @@ database.o: database.h
|
||||||
|
|
||||||
funcs.h: database.h
|
funcs.h: database.h
|
||||||
|
|
||||||
|
compile: compile.c
|
||||||
|
$(CC) $(CCFLAGS) -o $@ $<
|
||||||
|
|
||||||
database.c database.h: compile adventure.text
|
database.c database.h: compile adventure.text
|
||||||
./compile
|
./compile
|
||||||
$(CC) $(CCFLAGS) -O $(DBX) -c database.c
|
$(CC) $(CCFLAGS) -O $(DBX) -c database.c
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue