From c524506e04927a39648d47ba55af4fdff32faab6 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Fri, 28 Oct 2022 01:17:59 +0100 Subject: horrible makefile tricks, making the buffer thing actually buffer the buffers bufferously, properly, also fix typos --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cb02b50..2269f1c 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ .POSIX: .SUFFIXES: .c .o -CFLAGS=-Wall CC=cc debug=-g -DDEBUG -DLOCAL +CFLAGS=$(MORE_CFLAGS) -Wall OBJS=bee.o irc.o util.o @@ -12,10 +12,11 @@ apiobot: $(OBJS) $(CC) $(CFLAGS) -o apiobot $(OBJS) debug: - $(CC) $(CFLAGS) $(debug) -o apiobot $(OBJS) + make apiobot MORE_CFLAGS="-DDEBUG -DLOCAL -g" + .c.o: - $(CC) -c $< $(CFLAGS) -o $@ + $(CC) $(CFLAGS) -c $< -o $@ run: all ./apiobot -- cgit v1.2.3