Change-Id: Iad1ac3cc40f898422baed64ffb3dbc26fbeb5fc9
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
# 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
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 $@ $<