From 0c22b772ed03ff960c2e052b2422a28b855b0927 Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Mon, 30 Jan 2012 14:03:36 +0200 Subject: [PATCH] using system AR program, build options are moved to config.mk --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d1f9993..35b7ac6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -CFLAGS=-Wall -std=c89 -g -O2 +# You can put your build options here +-include config.mk all: libjsmn.a @@ -6,7 +7,7 @@ demo: libjsmn.a demo.o $(CC) $(LDFLAGS) demo.o -L. -ljsmn -o $@ libjsmn.a: jsmn.o - ar rc $@ $^ + $(AR) rc $@ $^ %.o: %.c jsmn.h $(CC) -c $(CFLAGS) $< -o $@ @@ -20,3 +21,4 @@ clean: rm -f demo .PHONY: all clean test demo +