summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli/Makefile4
-rw-r--r--lib/fal/Makefile4
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/Makefile b/cli/Makefile
index c8c49f8..9eb1078 100644
--- a/cli/Makefile
+++ b/cli/Makefile
@@ -19,10 +19,10 @@ endif
-CFLAGS += -I$(PRJ_PATH)/cli/include/ -I$(PRJ_PATH)/cli/include/dal $(QCA_NSS_MACSEC_INCLUDE)
+EXTRA_CFLAGS += -I$(PRJ_PATH)/cli/include/ -I$(PRJ_PATH)/cli/include/dal $(QCA_NSS_MACSEC_INCLUDE)
%.o:%.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
CLI_US_OBJ := shell_main.o \
shell_entity.o \
diff --git a/lib/fal/Makefile b/lib/fal/Makefile
index 717ea07..56d59be 100644
--- a/lib/fal/Makefile
+++ b/lib/fal/Makefile
@@ -21,7 +21,7 @@ ifndef CFLAGS
CFLAGS = -MMD -O2 -Wall -g
endif
-CFLAGS += -I$(PRJ_PATH)/cli/include $(QCA_NSS_MACSEC_INCLUDE)
+EXTRA_CFLAGS += -I$(PRJ_PATH)/cli/include $(QCA_NSS_MACSEC_INCLUDE)
ALL=fal.so
@@ -30,7 +30,7 @@ all:$(ALL)
FAL_OBJ := nss_macsec_fal_api.o
%.o:%.c
- $(CC) $(CFLAGS) -c -o $@ $< -fPIC
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< -fPIC
fal.so: $(FAL_OBJ)
$(CC) $(LDFLAGS) -o libfal.so -shared -rdynamic -lpthread -fPIC $^