Merge "[qca-ssdk]allow passing MODULE_CFLAG"
diff --git a/make/linux_opt.mk b/make/linux_opt.mk
index 3de3895..5a5c234 100755
--- a/make/linux_opt.mk
+++ b/make/linux_opt.mk
@@ -1,3 +1,6 @@
+MODULE_CFLAG :=
+LOCAL_CFLAGS :=
+
 ifeq (TRUE, $(IN_ACL))
   MODULE_CFLAG += -DIN_ACL
 endif
@@ -331,4 +334,4 @@
   endif
 endif
 
-CFLAGS += $(MODULE_INC) $(MODULE_CFLAG)
+LOCAL_CFLAGS += $(MODULE_INC) $(MODULE_CFLAG)
diff --git a/make/target.mk b/make/target.mk
index a72c239..72264f5 100755
--- a/make/target.mk
+++ b/make/target.mk
@@ -10,10 +10,10 @@
 	$(DEP_LOOP)
 
 $(OBJ_LIST): %.o : %.c %.d
-	$(CC) $(CFLAGS) -c $< -o $(DST_DIR)/$@
+	$(CC) $(CFLAGS) $(LOCAL_CFLAGS) -c $< -o $(DST_DIR)/$@
 
 $(DEP_LIST) : %.d : %.c
-	$(CC) $(CFLAGS) -MM $< > $(DST_DIR)/$@.tmp
+	$(CC) $(CFLAGS) $(LOCAL_CFLAGS) -MM $< > $(DST_DIR)/$@.tmp
 	sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $(DST_DIR)/$@.tmp > $(DST_DIR)/$@
 	$(RM) -f $(DST_DIR)/$@.tmp;