123456789101112131415161718192021222324252627282930313233 |
- ARTIFACT = cmac-test
- PLATFORM = armv7le
- OUTPUT_DIR = build
- TARGET = $(ARTIFACT)
- CC ?= qcc -Vgcc_nto$(PLATFORM)
- CXX = qcc -lang-c++ -Vgcc_nto$(PLATFORM)
- LD = $(CC)
- INCLUDES += -I../../../
- LIBS += -L../../../src/.libs/ -lwolfssl
- LIBS += -lsocket -lm
- CCFLAGS += -O2 -Wall
- SRCS = cmac-test.c
- OBJS = $(addprefix $(OUTPUT_DIR)/,$(addsuffix .o, $(basename $(SRCS))))
- $(OUTPUT_DIR)/%.o: %.c
- @mkdir -p $(dir $@)
- $(CC) -c -o $@ $(INCLUDES) $(CCFLAGS) $<
- $(TARGET):$(OBJS)
- $(LD) -o $(TARGET) $(OBJS) $(LIBS)
- all: $(TARGET)
- clean:
- rm -rf $(OUTPUT_DIR) $(ARTIFACT)
- rebuild: clean all
|