Do not overwrite CFLAGS and use LDGLAGS 17/32617/1 accepted/tizen_3.0_common accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2 accepted/tizen/3.0/common/20161114.111923 accepted/tizen/common/20150129.111400 accepted/tizen/ivi/20150130.061452 accepted/tizen/ivi/20160218.025855 accepted/tizen/mobile/20150130.001225 accepted/tizen/tv/20150130.000809 accepted/tizen/unified/20170313.062440 accepted/tizen/wearable/20150131.031707 submit/tizen/20150129.061834 submit/tizen_3.0_common/20161104.104000 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000007 submit/tizen_unified/20170313.061610 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_4.0.m1_release
authorYury Usishchev <y.usishchev@samsung.com>
Fri, 19 Dec 2014 14:43:40 +0000 (17:43 +0300)
committerYury Usishchev <y.usishchev@samsung.com>
Fri, 19 Dec 2014 14:49:25 +0000 (17:49 +0300)
Change-Id: Iad1ac3cc40f898422baed64ffb3dbc26fbeb5fc9
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
Makefile

index 7501eee..2af31f2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,8 +31,8 @@ OBJS=tree.o unix.o html.o xml.o hash.o color.o
 
 # Linux defaults:
 #CFLAGS=-ggdb -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-CFLAGS=-O4 -Wall  -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-LDFLAGS=-s
+CFLAGS+=-O4 -Wall  -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
+LDFLAGS+=-s
 
 # Uncomment for FreeBSD:
 #CFLAGS=-O2 -Wall -fomit-frame-pointer
@@ -83,7 +83,7 @@ LDFLAGS=-s
 all:   tree
 
 tree:  $(OBJS)
-       $(CC) $(LDFLAGS) -o $(TREE_DEST) $(OBJS)
+       $(CC) -o $(TREE_DEST) $(OBJS) $(LDFLAGS)
 
 $(OBJS): %.o:  %.c tree.h
        $(CC) $(CFLAGS) -c -o $@ $<