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

CFLAGS = -Wall -O3 --std=c11
simple_cplx : cplx.h complex.c simple_cplx.c
$(CC) `pkg-config --cflags --libs gsl` $(CFLAGS) complex.c $@.c -o $@
seamlessone : seamlessone.c
$(CC) $(CFLAGS) -fms-extensions -Wno-microsoft $@.c -o $@
seamlesstwo : seamlesstwo.c
$(CC) $(CFLAGS) -fms-extensions -Wno-microsoft $@.c -o $@
.PHONY : all
all : simple_cplx seamlessone seamlesstwo
.PHONY : check
check : *.h *.c
cppcheck --enable=warning --enable=style *.c
.PHONY : clean
clean :
rm -f simple_cplx
rm -f seamlessone
rm -f seamlesstwo
rm -rf *.dSYM