Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
554 B

10 years ago
10 years ago
10 years ago
10 years ago
  1. CFLAGS = -Wall -O3 --std=c11
  2. simple_cplx : cplx.h complex.c simple_cplx.c
  3. $(CC) `pkg-config --cflags --libs gsl` $(CFLAGS) complex.c $@.c -o $@
  4. seamlessone : seamlessone.c
  5. $(CC) $(CFLAGS) -fms-extensions -Wno-microsoft $@.c -o $@
  6. seamlesstwo : seamlesstwo.c
  7. $(CC) $(CFLAGS) -fms-extensions -Wno-microsoft $@.c -o $@
  8. .PHONY : all
  9. all : simple_cplx seamlessone seamlesstwo
  10. .PHONY : check
  11. check : *.h *.c
  12. cppcheck --enable=warning --enable=style *.c
  13. .PHONY : clean
  14. clean :
  15. rm -f simple_cplx
  16. rm -f seamlessone
  17. rm -f seamlesstwo
  18. rm -rf *.dSYM