~brenns10/funlisp

858b0dc647f83498e4e00ab4231432339edb196b — Stephen Brennan 3 years ago 879aa1b
Make debug mode work
1 files changed, 6 insertions(+), 6 deletions(-)

M Makefile
M Makefile => Makefile +6 -6
@@ 4,17 4,17 @@

.PHONY: all clean

# Debug mode (make D=1): adds "debugging symbols" etc
D=0
ifeq ($(D),1)
FLAGS += -g -DDEBUG
endif

CC=gcc
CFLAGS= -std=c89 -Wall -Wextra -fPIC -Iinc -c
SRCS=$(wildcard src/*.c)
OBJS=$(patsubst src/%.c,obj/%.o,$(SRCS))

# Debug mode (make D=1): adds "debugging symbols" etc
D=0
ifeq ($(D),1)
CFLAGS += -g -DDEBUG
endif

all: bin/libfunlisp.a

obj/%.o: src/%.c