Revert "Add explicit rule for compile to use CCFLAGS instead of CFLAGS"
authorMichael Jarvis <Michael@Jarvis.com>
Fri, 2 Jun 2017 03:52:26 +0000 (22:52 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 2 Jun 2017 12:44:40 +0000 (08:44 -0400)
This reverts commit c29e30d25cce4a92d617d79a49d97643fb9261a7.

Makefile

index 7b81be6b418236e9f1b89b1b06f3c7e18ba56a01..23cd7f9dc749be6bbb53eba1ade06e9a3fff154f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # Makefile for the open-source release of adventure 2.5
 
-CC=clang
-CCFLAGS=-O2 -std=c99 -Wall -Wextra -Wpedantic -fstack-protector -fstack-protector-all -pipe -mtune=native
+CC?=gcc
+CCFLAGS=-std=c99
 LIBS=
 UNAME_S := $(shell uname -s)
 ifeq ($(UNAME_S),Linux)
@@ -33,9 +33,6 @@ database.o:   database.h
 
 funcs.h:       database.h
 
-compile: compile.c
-       $(CC) $(CCFLAGS) -o $@ $<
-
 database.c database.h: compile adventure.text
        ./compile
        $(CC) $(CCFLAGS) -O $(DBX) -c database.c