PWD = $(shell pwd) ROOT_DIR = $(PWD) PROJ_DIR = $(ROOT_DIR)/../../c_project_iso CC = gcc CFLAGS = -Os SRC += $(wildcard $(PROJ_DIR)/application/rx_tx_test.c) SRC += $(wildcard $(PROJ_DIR)/Lib/src/*.c) SRC += $(wildcard $(PROJ_DIR)/iso15765-canbus-master/lib/lib_iqueue.c) SRC += $(wildcard $(PROJ_DIR)/iso15765-canbus-master/src/lib_iso15765.c) LINC += -I$(PROJ_DIR)/application LINC += -I$(PROJ_DIR)/Lib/inc LINC += -I$(PROJ_DIR)/iso15765-canbus-master/lib LINC += -I$(PROJ_DIR)/iso15765-canbus-master/src targets = exeSDK all:$(targets) $(targets):$(SRC) $(CC) $(CFLAGS) $(SRC) $(LINC) -lpthread -lm -o $@ clean: rm -f *.o $(targets)