1 diff --git a/Makefile b/Makefile
2 index 66e8bea..e94aa3f 100644
8 -CFLAG=-O2 -g -Wall -Iinclude
9 +# CFLAG=-O2 -g -Wall -Iinclude
10 +CFLAGS+= -Wall -Iinclude
13 .PHONY: all hzlib clean install-home install
14 @@ -10,9 +11,9 @@ all: autob5 autogb hzlib
16 rm -f autob5;ln -s autogb autob5
18 - $(CC) $(CFLAG) $(LIBS) autogb.c -lhz -o autogb
19 + $(CC) $(CFLAGS) $(LIBS) $(LDFLAGS) autogb.c -lhz -o autogb
20 autogb-static:autogb.c hzlib
21 - $(CC) $(CFLAG) autogb.c lib/libhz.a -o autogb
22 + $(CC) $(CFLAGS) $(LDFLAGS) autogb.c lib/libhz.a -o autogb
26 diff --git a/hzconvert/Makefile b/hzconvert/Makefile
27 index d8d4d19..2809d0a 100644
28 --- a/hzconvert/Makefile
29 +++ b/hzconvert/Makefile
32 -CFLAGS=-O2 -Wall -g -D_REENTRANT
33 +CFLAGS+=-Wall -D_REENTRANT
35 SHARED_LIB_MAJOR=$(SHARED_LIB).0
36 SHARED_LIB_MINOR=$(SHARED_LIB_MAJOR).0
37 @@ -15,7 +15,7 @@ STATIC_OBJS=b2g.static.o b2u.static.o g2u.static.o hz2gb.static.o b2g_tables.sta
38 all: share-lib static-lib
41 - gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) -o ../lib/$(SHARED_LIB_MINOR) $(OBJS) -ldl
42 + gcc -fPIC -shared -Wl,-soname,$(SHARED_LIB_MAJOR) $(LDFLAGS) -o ../lib/$(SHARED_LIB_MINOR) $(OBJS) -ldl
43 rm -f ../lib/$(SHARED_LIB_MAJOR)
44 rm -f ../lib/$(SHARED_LIB)
45 cd ../lib;ln -s $(SHARED_LIB_MINOR) $(SHARED_LIB_MAJOR)