Commits

Serge A. Zaitsev  committed 49d53f6

using system AR program, build options are moved to config.mk

  • Participants
  • Parent commits d383cfe

Comments (0)

Files changed (1)

-CFLAGS=-Wall -std=c89 -g -O2
+# You can put your build options here
+-include config.mk
 
 all: libjsmn.a 
 
 	$(CC) $(LDFLAGS) demo.o -L. -ljsmn -o $@
 
 libjsmn.a: jsmn.o
-	ar rc $@ $^
+	$(AR) rc $@ $^
 
 %.o: %.c jsmn.h
 	$(CC) -c $(CFLAGS) $< -o $@
 	rm -f demo
 
 .PHONY: all clean test demo
+