Makefile 586 B

123456789101112131415161718192021222324252627282930
  1. ##
  2. # Copyright (C) 2021 Alibaba Group Holding Limited
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License version 2 as
  6. # published by the Free Software Foundation.
  7. ##
  8. SOURCES = test_visys.c
  9. OBJECTS := $(SOURCES:.c=.o)
  10. EXEC = output/test_visys
  11. CFLAGS = -O0 -Wall -g -lm -I../../driver/visys
  12. all: $(EXEC)
  13. .c.o:
  14. $(CC) -c $(CFLAGS) $(INCLUDES) $<
  15. $(EXEC): $(OBJECTS)
  16. mkdir -p output
  17. $(CC) $(CFLAGS) -o $(EXEC) $(OBJECTS) -pthread
  18. clean:
  19. rm -f *.o $(EXEC)
  20. rm -rf output
  21. install:
  22. .PHONY: clean all