From eef250dd4a0ae185a8d9d668f020b2ab5c2f4849 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 29 Aug 2021 13:54:31 +0200 Subject: Start x86 rewrite --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f008b1c..35af12f 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ SOURCEDIR = src +INCDIR = inc BUILDDIR = build SOURCES = $(wildcard $(SOURCEDIR)/*.c) OBJS = $(patsubst $(SOURCEDIR)/%.c, $(BUILDDIR)/%.o, $(SOURCES)) CC = gcc WARNINGS = -Wall -Wextra -Wshadow -Wpointer-arith -Wwrite-strings -Wredundant-decls -Wnested-externs -Wformat=2 -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wswitch-default -Wswitch-enum -Wlogical-op -Wunreachable-code -Wundef -Wold-style-definition -Wvla -pedantic -DEBUG = -fsanitize=undefined -ggdb3 -g3 -g -s -Og -CFLAGS = -Ofast $(WARNINGS) -I$(SOURCEDIR)/inc/ $(shell pkg-config --cflags --libs gtk+-3.0 gtksourceview-4) $(DEBUG) +DEBUG = -fsanitize=undefined -fsanitize=address -ggdb3 -g3 -g -s -Og +CFLAGS = -Ofast $(WARNINGS) -I$(INCDIR) $(DEBUG) all: $(OBJS) @$(CC) -o ./$(BUILDDIR)/out $^ $(CFLAGS) -- cgit v1.2.3