# 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)
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