From 1e78b0aa160b23559565cffd8678fc38af3f3a41 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 14 Apr 2014 14:44:58 +0100 Subject: [PATCH] Simplify config.mk and update README for tcc --- README | 2 ++ config.mk | 12 +++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/README b/README index dd2a6a0..25b9b62 100644 --- a/README +++ b/README @@ -28,5 +28,7 @@ individual tools to ubase-box. Ideally you will want to statically link ubase. We highly recommend using musl-libc[2]. +ubase is known to compile with gcc and tcc. + [1] http://git.suckless.org/sbase/ [2] http://www.musl-libc.org/ diff --git a/config.mk b/config.mk index aa54399..2b0df5f 100644 --- a/config.mk +++ b/config.mk @@ -8,12 +8,6 @@ MANPREFIX = $(PREFIX)/share/man #CC = gcc #CC = musl-gcc LD = $(CC) -CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE -CFLAGS = -g -std=c99 -Wall -Wextra $(CPPFLAGS) -LDFLAGS = -g -lcrypt - -#CC = tcc -#LD = $(CC) -#CPPFLAGS = -D_BSD_SOURCE -D_GNU_SOURCE -#CFLAGS = -Os -Wall $(CPPFLAGS) -#LDFLAGS = -lcrypt +CPPFLAGS = -D_GNU_SOURCE +CFLAGS = -Os -Wall -Wextra $(CPPFLAGS) +LDFLAGS = -lcrypt