Makefile 647 B

12345678910111213141516171819202122232425262728
  1. PWD = $(shell pwd)
  2. ROOT_DIR = $(PWD)
  3. PROJ_DIR = $(ROOT_DIR)/../../c_project_iso
  4. CC = gcc
  5. CFLAGS = -Os
  6. SRC += $(wildcard $(PROJ_DIR)/application/rx_tx_test.c)
  7. SRC += $(wildcard $(PROJ_DIR)/Lib/src/*.c)
  8. SRC += $(wildcard $(PROJ_DIR)/iso15765-canbus-master/lib/lib_iqueue.c)
  9. SRC += $(wildcard $(PROJ_DIR)/iso15765-canbus-master/src/lib_iso15765.c)
  10. LINC += -I$(PROJ_DIR)/application
  11. LINC += -I$(PROJ_DIR)/Lib/inc
  12. LINC += -I$(PROJ_DIR)/iso15765-canbus-master/lib
  13. LINC += -I$(PROJ_DIR)/iso15765-canbus-master/src
  14. targets = exeSDK
  15. all:$(targets)
  16. $(targets):$(SRC)
  17. $(CC) $(CFLAGS) $(SRC) $(LINC) -lpthread -lm -o $@
  18. clean:
  19. rm -f *.o $(targets)